src/share/classes/java/lang/Iterable.java

Print this page

        

*** 25,36 **** package java.lang; import java.util.Iterator; ! /** Implementing this interface allows an object to be the target of * the "foreach" statement. * @since 1.5 */ public interface Iterable<T> { /** --- 25,40 ---- package java.lang; import java.util.Iterator; ! /** ! * Implementing this interface allows an object to be the target of * the "foreach" statement. + * + * @param <T> the type of elements returned by the iterator + * * @since 1.5 */ public interface Iterable<T> { /**