JavaTM 2 Platform Std. Ed. v1.5.0
java.lang
Interface Iterable<T>
- All Known Subinterfaces:
- BeanContext, BeanContextServices, BlockingQueue<E>, Collection<E>, List<E>, Queue<E>, Set<E>, SortedSet<E>
- All Known Implementing Classes:
- AbstractCollection, AbstractList, AbstractQueue, AbstractSequentialList, AbstractSet, ArrayBlockingQueue, ArrayList, AttributeList, BeanContextServicesSupport, BeanContextSupport, ConcurrentLinkedQueue, CopyOnWriteArrayList, CopyOnWriteArraySet, DelayQueue, EnumSet, HashSet, JobStateReasons, LinkedBlockingQueue, LinkedHashSet, LinkedList, PriorityBlockingQueue, PriorityQueue, RoleList, RoleUnresolvedList, Stack, SynchronousQueue, TreeSet, Vector
public interface Iterable<T>
Implementing this interface allows an object to be the target of
the "foreach" statement.
Method Summary |
Iterator<T> |
iterator()
Returns an iterator over a set of elements of type T. |
iterator
Iterator<T> iterator()
- Returns an iterator over a set of elements of type T.
- Returns:
- an Iterator.
Copyright 2003 Sun Microsystems, Inc. All rights reserved
|