Developer's Corner
From WalaWiki
[edit]
Standardizing API for Collection return values
Greg Dennis noted on the mailing list:
When returning multiple elements, some methods return arrays, some return Collections, and some return Iterators. The extent to which the API can be standardized to always return subtypes of Collection would make it more uniform and easier to understand. It would also allow clients to use the Java 5 enhanced for loop more often.
Agreed. Let's keep a list here of methods that need to be migrated to return Collections.
The list:
- Populate me!
