Sized
Kevin Bourrillion
kevinb at google.com
Fri Nov 2 15:16:25 PDT 2012
On Fri, Nov 2, 2012 at 3:05 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
- It is useful to indicate that an aggregate knows its size (Collections
> do, but not all Iterables do, and we've taken advantage of this in the
> Streams library)
>
Of course, some collections, like the key set of a ConcurrentHashMap, don't
know their size any more than a garden-variety Iterable does.
So to me, this seems useful only if it is *not* a supertype of Collection.
--
Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20121102/88f08982/attachment.html
More information about the lambda-libs-spec-experts
mailing list