java.lang
Interface Iterable<T>

All Known Subinterfaces:
BeanContext, BeanContextServices, BlockingDeque<E>, BlockingQueue<E>, Collection<E>, Deque<E>, DirectoryStream<T>, List<E>, NavigableSet<E>, Queue<E>, Set<E>, SortedSet<E>, TransferQueue<E>
All Known Implementing Classes:
AbstractCollection, AbstractList, AbstractQueue, AbstractSequentialList, AbstractSet, ArrayBlockingQueue, ArrayDeque, ArrayList, AttributeList, BatchUpdateException, BeanContextServicesSupport, BeanContextSupport, BooleanArray, ByteArray, CharArray, ConcurrentLinkedQueue, ConcurrentSkipListSet, ConstArray, CopyOnWriteArrayList, CopyOnWriteArraySet, DataTruncation, DelayQueue, DoubleArray, EnumSet, FloatArray, HashSet, ImmutableArray, IntArray, JobStateReasons, LinkedBlockingDeque, LinkedBlockingQueue, LinkedHashSet, LinkedList, LinkedTransferQueue, LongArray, Path, PowerlessArray, PriorityBlockingQueue, PriorityQueue, RoleList, RoleUnresolvedList, RowSetWarning, SecureDirectoryStream, SerialException, ServiceLoader, ShortArray, SQLClientInfoException, SQLDataException, SQLException, SQLFeatureNotSupportedException, SQLIntegrityConstraintViolationException, SQLInvalidAuthorizationSpecException, SQLNonTransientConnectionException, SQLNonTransientException, SQLRecoverableException, SQLSyntaxErrorException, SQLTimeoutException, SQLTransactionRollbackException, SQLTransientConnectionException, SQLTransientException, SQLWarning, Stack, SyncFactoryException, SynchronousQueue, SyncProviderException, TreeSet, Vector

public interface Iterable<T>

Implementing this interface allows an object to be the target of the "foreach" statement.

Since:
1.5

Method Summary
 Iterator<T> iterator()
          Suppressed.
          Returns an iterator over a set of elements of type T.
 

Method Detail

iterator

Iterator<T> iterator()
Suppressed. deny to allow for existence of classes with bad iterators

Returns an iterator over a set of elements of type T.

Returns:
an Iterator.