himanshudixit / google-collections

Automatically exported from code.google.com/p/google-collections
Apache License 2.0
0 stars 0 forks source link

Way to deal with Enumeration, help fix the greatest eye sore in java.util (except perhaps Properties) #213

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Iterable<T> Iterables.for(Enumeration<T> enumeration);
Iterator<T> Iterators.for(Enumeration<T> enumeration);

Original issue reported on code.google.com by ejwin...@gmail.com on 28 Jul 2009 at 1:50

GoogleCodeExporter commented 9 years ago
Popular issue :)

First of all, "for" is a keyword :)
Iterators.forEnumeration is there, though.

Iterable doesn't make much sense.

Original comment by jim.andreou on 28 Jul 2009 at 2:07

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/google-collections/issues/detail?id=209

Original comment by jim.andreou on 28 Jul 2009 at 2:10

GoogleCodeExporter commented 9 years ago
Thanks, Jim.

Original comment by cpov...@google.com on 28 Jul 2009 at 3:27

GoogleCodeExporter commented 9 years ago
Oh boy how'd I miss that!  I did check but not closely enough.  Thank you.

Original comment by ejwin...@gmail.com on 28 Jul 2009 at 3:29

GoogleCodeExporter commented 9 years ago
If Enumeration really is the greatest eyesore in java.util, count yourself 
fortunate
you haven't worked much with GregorianCalendar. :)  Although "eyesore" doesn't 
begin
to cover it....

Original comment by kevin...@gmail.com on 28 Jul 2009 at 3:29