Sized
Brian Goetz
brian.goetz at oracle.com
Fri Nov 2 15:22:24 PDT 2012
> Of course, some collections, like the key set of a ConcurrentHashMap,
> don't know their size any more than a garden-variety Iterable does.
That's not exactly true. In the absence of interference from concurrent
modification, the key set of a CHM absolutely knows its size. It's just
that in the presence of interference, the reported size may be stale by
the time you receive it.
More information about the lambda-libs-spec-observers
mailing list