Package java.lang
Interface Iterable<T>
-
- All Known Subinterfaces:
BlockingDeque<E>,BlockingQueue<E>,Collection<E>,Deque<E>,Iterable<T>,List<E>,NavigableSet<E>,Queue<E>,Set<E>,SortedSet<E>,StringList,TransferQueue<E>
- All Known Implementing Classes:
AbstractCollection,AbstractList,AbstractQueue,AbstractSequentialList,AbstractSet,AlphabeticIndex,AlphabeticIndex.Bucket,AlphabeticIndex.ImmutableIndex,ArrayBlockingQueue,ArrayDeque,ArrayList,ArraySet,BatchUpdateException,BytesTrie,CharsTrie,CollectionStore,ConcurrentHashMap.KeySetView,ConcurrentLinkedDeque,ConcurrentLinkedQueue,ConcurrentSkipListSet,CopyOnWriteArrayList,CopyOnWriteArraySet,DataTruncation,DelayQueue,EnumSet,HashSet,LinkedBlockingDeque,LinkedBlockingQueue,LinkedHashSet,LinkedList,LinkedTransferQueue,LocalePriorityList,PriorityBlockingQueue,PriorityQueue,ServiceLoader,SQLClientInfoException,SQLDataException,SQLException,SQLFeatureNotSupportedException,SQLIntegrityConstraintViolationException,SQLInvalidAuthorizationSpecException,SQLNonTransientConnectionException,SQLNonTransientException,SQLRecoverableException,SQLSyntaxErrorException,SQLTimeoutException,SQLTransactionRollbackException,SQLTransientConnectionException,SQLTransientException,SQLWarning,Stack,SynchronousQueue,TreeSet,Trie2,Trie2_16,Trie2_32,Trie2Writable,UnicodeSet,UnsafeArrayList,Vector
public interface Iterable<T>Instances of classes that implement this interface can be used with the enhanced for loop.- Since:
- 1.5
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<T>iterator()Returns anIteratorfor the elements in this object.
-