Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[higgins-dev] Java devo: replacement for Iterable

So, our beloved Iterable<someType> way of doing things must die and be replaced by something else.  What do people prefer:
 
1) Use java.lang.Iterator
2) Use java.util.Enumeration
3) Build our own iterator interfaces.
 
#1 and #2 both have the problem of requiring IdAS consumers to cast the java.lang.Object(s) coming out of the iterators to the correct java types.
 
#3 has the problem of us having to define a lot of new interfaces, and dealing with the maintenance nightmares that come with decisions to change apis.
 
Jim

Back to the top