public marks

PUBLIC MARKS from projects with tags java & iterable

11 February 2007 10:30

java.net: Nuances of the Java 5.0 for-each Loop

by 1 other
Item 9. Consider returning Iterable views rather than implementing Iterable. The Java collections classes can be used in for-each loops because they implement java.lang.Iterable. If a class implements java.lang.Iterable, then all its subclasses inheri