Hi Aaron,

A couple of examples...

it is not possible make a for-each loop from DayArrayIterator because hasNextNonempty(); is non standard. Actually this should have been designed as two separate Iterator views over the set and kept as standardized so that for-each loops could be created for each type of iteration desired.

Also in several classes there is a private 'collection' member. And the way to get at it is some method name other than iterator() so we have access to an iterator, but not a collection and I still have not found a good way to get from that iterator to the collection expected in a for-each loop.

--
David J. Nickles
Information and Computer Sciences
University of Hawaii at Manoa
1680 East West Rd. POST 312A
Honolulu, HI 96822
voice: (808)956-3497 fax: (808)956-3548
eMail | Web | vCard


On Apr 16, 2007, at 11:36 PM, Aaron Kagawa wrote:

Just curious what is an example of the non-standard iterator that exists in Hackystat?

thanks, Aaron

At 11:29 PM 4/16/2007, David Nickles wrote:
I think we need something like these methods in our system to facilitate the for-each loops on some of the non-standard iterators that exist within the system.

http://dlt-dev.ncsa.uiuc.edu/javadoc/t2/org/tupeloproject/util/ Iterators.html

--

David J. Nickles

Information and Computer Sciences

University of Hawaii at Manoa

1680 East West Rd. POST 312A

Honolulu, HI 96822

voice: (808)956-3497 fax: (808)956-3548

eMail | Web | vCard




Reply via email to