java.lang

Interface Iterable<T>

public interface Iterable<T>

Implementing this interface allows an object to be the object of the foreach statement.
Method Summary
SimpleIterator<T>iterator()
Returns an iterator over a set of elements of type T.

Method Detail

iterator

public SimpleIterator<T> iterator()
Returns an iterator over a set of elements of type T.

Returns: a SimpleIterator.