Package java.lang
Interface Iterable<T>
-
- All Known Subinterfaces:
Collection<E>
,List<E>
,Queue<E>
- All Known Implementing Classes:
ArrayList
public interface Iterable<T>
Instances of classes that implement this interface can be used with the enhanced for loop.- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<T>
iterator()
Returns anIterator
for the elements in this object.
-