java.lang.Iterable<T> |
![]()
AbstractCollection<E>,
AbstractList<E>,
AbstractQueue<E>,
AbstractSequentialList<E>,
AbstractSet<E>,
ArrayDeque<E>,
ArrayList<E>,
Collection<E>,
Deque<E>,
HashSet<E>,
LinkedHashSet<E>,
LinkedList<E>,
List<E>,
NavigableSet<E>,
PriorityQueue<E>,
and
6 others.
|
Objects of classes that implement this interface can be used within a
foreach
statement.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract Iterator<T> |
iterator()
Returns an
Iterator for the elements in this object. |
Returns an Iterator
for the elements in this object.
Iterator
instance.