Package java.lang
Interface Iterable<T>
- All Known Subinterfaces:
BlockingDeque<E>,BlockingQueue<E>,Collection<E>,Deque<E>,List<E>,NavigableSet<E>,Queue<E>,Set<E>,SortedSet<E>,TransferQueue<E>
- All Known Implementing Classes:
AbstractCollection,AbstractList,AbstractQueue,AbstractSequentialList,AbstractSet,ArrayBlockingQueue,ArrayDeque,ArrayList,BatchUpdateException,Bits,BooleanPtr,BooleanPtr.BooleanPtrPtr,BytePtr,BytePtr.BytePtrPtr,CharPtr,CharPtr.CharPtrPtr,ConcurrentLinkedDeque,ConcurrentLinkedQueue,ConcurrentSkipListSet,CopyOnWriteArrayList,CopyOnWriteArraySet,DataTruncation,DelayQueue,DoublePtr,DoublePtr.DoublePtrPtr,EnumSet,FloatPtr,FloatPtr.FloatPtrPtr,FunctionPtr,FunctionPtr.FunctionPtrPtr,HashSet,IntPtr,IntPtr.IntPtrPtr,LinkedBlockingDeque,LinkedBlockingQueue,LinkedHashSet,LinkedList,LinkedTransferQueue,LongPtr,LongPtr.LongPtrPtr,MachineSizedFloatPtr,MachineSizedFloatPtr.MachineSizedFloatPtrPtr,MachineSizedSIntPtr,MachineSizedSIntPtr.MachineSizedSIntPtrPtr,MachineSizedUIntPtr,MachineSizedUIntPtr.MachineSizedUIntPtrPtr,PriorityBlockingQueue,PriorityQueue,Ptr,ServiceLoader,ShortPtr,ShortPtr.ShortPtrPtr,SQLClientInfoException,SQLDataException,SQLException,SQLFeatureNotSupportedException,SQLIntegrityConstraintViolationException,SQLInvalidAuthorizationSpecException,SQLNonTransientConnectionException,SQLNonTransientException,SQLRecoverableException,SQLSyntaxErrorException,SQLTimeoutException,SQLTransactionRollbackException,SQLTransientConnectionException,SQLTransientException,SQLWarning,Stack,Struct,SynchronousQueue,TreeSet,UnsafeArrayList,Vector,VoidPtr,VoidPtr.VoidPtrPtr
public interface Iterable<T>
Instances of classes that implement this interface can be used with
the enhanced for loop.
- Since:
- 1.5
-
Method Summary
-
Method Details
-
iterator
Returns anIteratorfor the elements in this object.- Returns:
- An
Iteratorinstance.
-