it.unimi.dsi.fastutil.ints
Interface IntIterable
- All Superinterfaces:
- Iterable<Integer>
- All Known Subinterfaces:
- IntBigList, IntCollection, IntList, IntSet, IntSortedSet
- All Known Implementing Classes:
- AbstractIntBigList, AbstractIntBigList.IntSubList, AbstractIntCollection, AbstractIntList, AbstractIntList.IntSubList, AbstractIntSet, AbstractIntSortedSet, IntArrayList, IntArraySet, IntAVLTreeSet, IntBigArrayBigList, IntBigLists.EmptyBigList, IntBigLists.ListBigList, IntBigLists.Singleton, IntBigLists.SynchronizedBigList, IntBigLists.UnmodifiableBigList, IntCollections.EmptyCollection, IntCollections.IterableCollection, IntCollections.SynchronizedCollection, IntCollections.UnmodifiableCollection, IntLinkedOpenCustomHashSet, IntLinkedOpenHashSet, IntLists.EmptyList, IntLists.Singleton, IntLists.SynchronizedList, IntLists.UnmodifiableList, IntOpenCustomHashSet, IntOpenHashBigSet, IntOpenHashSet, IntRBTreeSet, IntSets.EmptySet, IntSets.Singleton, IntSets.SynchronizedSet, IntSets.UnmodifiableSet, IntSortedSets.EmptySet, IntSortedSets.Singleton, IntSortedSets.SynchronizedSortedSet, IntSortedSets.UnmodifiableSortedSet
public interface IntIterable
- extends Iterable<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
iterator
IntIterator iterator()
- Returns a type-specific iterator.
Note that this specification strengthens the one given in
Iterable.iterator()
.
- Specified by:
iterator
in interface Iterable<Integer>
- Returns:
- a type-specific iterator.