java.lang
Interface Iterable

All Known Subinterfaces:
Collection, List, Set
All Known Implementing Classes:
AbstractCollection, AbstractList, AbstractSet, ArrayList, HashSet, Vector

public interface Iterable

Implementations of this interface can be used within a foreach statement.

Since:
1.5

Method Summary
 Iterator iterator()
          Returns an Iterator for the elements in this object.
 

Method Detail

iterator

public Iterator iterator()

Returns an Iterator for the elements in this object.

Returns:
An Iterator instance.