Package java.lang
Interface Iterable<T>
-
- Type Parameters:
T- the type of elements returned by the iterator
- All Known Subinterfaces:
Collection<E>,List<E>,Set<E>
- All Known Implementing Classes:
AbstractCollection,AbstractList,AbstractSet,ArrayList,Stack,Vector
public interface Iterable<T>Implementing this interface allows an object to be the target of the "foreach" statement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<T>iterator()Returns an iterator over a set of elements of type T.
-