it.unimi.dsi.fastutil.ints
Interface IntIterable

All Superinterfaces:
java.lang.Iterable<java.lang.Integer>
All Known Subinterfaces:
IntCollection, IntList, IntSet, IntSortedSet
All Known Implementing Classes:
AbstractIntCollection, AbstractIntList, AbstractIntList.IntSubList, AbstractIntSet, AbstractIntSortedSet, IntArrayList, IntArraySet, IntAVLTreeSet, IntCollections.EmptyCollection, IntCollections.SynchronizedCollection, IntCollections.UnmodifiableCollection, IntLinkedOpenHashSet, IntLists.EmptyList, IntLists.Singleton, IntLists.SynchronizedList, IntLists.UnmodifiableList, IntOpenHashSet, IntRBTreeSet, IntSets.EmptySet, IntSets.Singleton, IntSets.SynchronizedSet, IntSets.UnmodifiableSet, IntSortedSets.EmptySet, IntSortedSets.Singleton, IntSortedSets.SynchronizedSortedSet, IntSortedSets.UnmodifiableSortedSet

public interface IntIterable
extends java.lang.Iterable<java.lang.Integer>

A type-specific Iterable that strengthens that specification of Iterable.iterator().

Warning: Java will let you write “colon” for statements with primitive-type loop variables; however, what is (unfortunately) really happening is that at each iteration an unboxing (and, in the case of fastutil type-specific data structures, a boxing) will be performed. Watch out.

See Also:
Iterable

Method Summary
 IntIterator iterator()
          Returns a type-specific iterator.
 

Method Detail

iterator

IntIterator iterator()
Returns a type-specific iterator. Note that this specification strengthens the one given in Iterable.iterator().

Specified by:
iterator in interface java.lang.Iterable<java.lang.Integer>
Returns:
a type-specific iterator.