it.unimi.dsi.fastutil.booleans
Interface BooleanIterable

All Superinterfaces:
java.lang.Iterable<java.lang.Boolean>
All Known Subinterfaces:
BooleanBigList, BooleanCollection, BooleanList, BooleanSet
All Known Implementing Classes:
AbstractBooleanBigList, AbstractBooleanBigList.BooleanSubList, AbstractBooleanCollection, AbstractBooleanList, AbstractBooleanList.BooleanSubList, AbstractBooleanSet, 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 java.lang.Iterable<java.lang.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

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

Method Detail

iterator

BooleanIterator 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.Boolean>
Returns:
a type-specific iterator.