Skip to main content

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

I personally think #1 is the simplest and appears to meet all of our needs.  
 
 
Duane

>>>
From: "Jim Sermersheim" <jimse@xxxxxxxxxx>
To: <higgins-dev@xxxxxxxxxxx>
Date: 3/7/2007 1:26 PM
Subject: [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