java.lang
Interface Iterable<E>

All Known Subinterfaces:
BeanContext, BeanContextServices, Collection<E>, List<E>, Set<E>, SortedSet<E>
All Known Implementing Classes:
AbstractCollection, AbstractList, java.util.AbstractQueue, AbstractSequentialList, AbstractSet, ArrayList, AttributeList, BeanContextServicesSupport, BeanContextSupport, CopyOnWriteArrayList, EnumSet, HashSet, JobStateReasons, LinkedHashSet, LinkedList, PriorityQueue, ServiceLoader, Stack, TreeSet, Vector

public interface Iterable<E>

This interface is used to indicate that a given class can be iterated over. The compiler uses this interface to determine which classes are suitable targets of the foreach construct.

Since:
1.5

Method Summary
 Iterator<E> iterator()
          Returns an iterator for the collection.
 

Method Detail

iterator

Iterator<E> iterator()
Returns an iterator for the collection.

Returns:
an iterator.