it.unimi.dsi.fastutil.bytes
Interface ByteIterable
- All Superinterfaces:
- Iterable<Byte>
- All Known Subinterfaces:
- ByteBigList, ByteCollection, ByteList, ByteSet, ByteSortedSet
- All Known Implementing Classes:
- AbstractByteBigList, AbstractByteBigList.ByteSubList, AbstractByteCollection, AbstractByteList, AbstractByteList.ByteSubList, AbstractByteSet, AbstractByteSortedSet, ByteArrayList, ByteArraySet, ByteAVLTreeSet, ByteBigArrayBigList, ByteBigLists.EmptyBigList, ByteBigLists.ListBigList, ByteBigLists.Singleton, ByteBigLists.SynchronizedBigList, ByteBigLists.UnmodifiableBigList, ByteCollections.EmptyCollection, ByteCollections.IterableCollection, ByteCollections.SynchronizedCollection, ByteCollections.UnmodifiableCollection, ByteLinkedOpenCustomHashSet, ByteLinkedOpenHashSet, ByteLists.EmptyList, ByteLists.Singleton, ByteLists.SynchronizedList, ByteLists.UnmodifiableList, ByteOpenCustomHashSet, ByteOpenHashSet, ByteRBTreeSet, ByteSets.EmptySet, ByteSets.Singleton, ByteSets.SynchronizedSet, ByteSets.UnmodifiableSet, ByteSortedSets.EmptySet, ByteSortedSets.Singleton, ByteSortedSets.SynchronizedSortedSet, ByteSortedSets.UnmodifiableSortedSet
public interface ByteIterable
- extends Iterable<Byte>
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
ByteIterator iterator()
- Returns a type-specific iterator.
Note that this specification strengthens the one given in
Iterable.iterator()
.
- Specified by:
iterator
in interface Iterable<Byte>
- Returns:
- a type-specific iterator.