it.unimi.dsi.fastutil.booleans
Interface BooleanIterable
- All Superinterfaces:
- Iterable<Boolean>
- All Known Subinterfaces:
- BooleanBigList, BooleanCollection, BooleanList, BooleanSet
- All Known Implementing Classes:
- AbstractBooleanBigList, AbstractBooleanBigList.BooleanSubList, AbstractBooleanCollection, AbstractBooleanList, AbstractBooleanList.BooleanSubList, AbstractBooleanSet, AbstractByte2BooleanSortedMap.ValuesCollection, AbstractChar2BooleanSortedMap.ValuesCollection, AbstractDouble2BooleanSortedMap.ValuesCollection, AbstractFloat2BooleanSortedMap.ValuesCollection, AbstractInt2BooleanSortedMap.ValuesCollection, AbstractLong2BooleanSortedMap.ValuesCollection, AbstractObject2BooleanSortedMap.ValuesCollection, AbstractReference2BooleanSortedMap.ValuesCollection, AbstractShort2BooleanSortedMap.ValuesCollection, BooleanArrayList, BooleanArraySet, BooleanBigArrayBigList, BooleanBigLists.EmptyBigList, BooleanBigLists.ListBigList, BooleanBigLists.Singleton, BooleanBigLists.SynchronizedBigList, BooleanBigLists.UnmodifiableBigList, BooleanCollections.EmptyCollection, BooleanCollections.IterableCollection, BooleanCollections.SynchronizedCollection, BooleanCollections.UnmodifiableCollection, BooleanLists.EmptyList, BooleanLists.Singleton, BooleanLists.SynchronizedList, BooleanLists.UnmodifiableList, BooleanOpenHashSet, BooleanSets.EmptySet, BooleanSets.Singleton, BooleanSets.SynchronizedSet, BooleanSets.UnmodifiableSet
public interface BooleanIterable
- extends Iterable<Boolean>
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
BooleanIterator iterator()
- Returns a type-specific iterator.
Note that this specification strengthens the one given in
Iterable.iterator()
.
- Specified by:
iterator
in interface Iterable<Boolean>
- Returns:
- a type-specific iterator.
Copyright © 2011. All Rights Reserved.