it.unimi.dsi.fastutil.bytes
Interface ByteIterable

All Superinterfaces:
Iterable<Byte>
All Known Subinterfaces:
ByteBigList, ByteCollection, ByteList, ByteSet, ByteSortedSet
All Known Implementing Classes:
AbstractByte2BooleanSortedMap.KeySet, AbstractByte2ByteSortedMap.KeySet, AbstractByte2ByteSortedMap.ValuesCollection, AbstractByte2CharSortedMap.KeySet, AbstractByte2DoubleSortedMap.KeySet, AbstractByte2FloatSortedMap.KeySet, AbstractByte2IntSortedMap.KeySet, AbstractByte2LongSortedMap.KeySet, AbstractByte2ObjectSortedMap.KeySet, AbstractByte2ReferenceSortedMap.KeySet, AbstractByte2ShortSortedMap.KeySet, AbstractByteBigList, AbstractByteBigList.ByteSubList, AbstractByteCollection, AbstractByteList, AbstractByteList.ByteSubList, AbstractByteSet, AbstractByteSortedSet, AbstractChar2ByteSortedMap.ValuesCollection, AbstractDouble2ByteSortedMap.ValuesCollection, AbstractFloat2ByteSortedMap.ValuesCollection, AbstractInt2ByteSortedMap.ValuesCollection, AbstractLong2ByteSortedMap.ValuesCollection, AbstractObject2ByteSortedMap.ValuesCollection, AbstractReference2ByteSortedMap.ValuesCollection, AbstractShort2ByteSortedMap.ValuesCollection, 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

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

Method Detail

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.


Copyright © 2011. All Rights Reserved.