it.unimi.dsi.fastutil.longs
Interface LongIterable

All Superinterfaces:
Iterable<Long>
All Known Subinterfaces:
LongBigList, LongCollection, LongList, LongSet, LongSortedSet
All Known Implementing Classes:
AbstractByte2LongSortedMap.ValuesCollection, AbstractChar2LongSortedMap.ValuesCollection, AbstractDouble2LongSortedMap.ValuesCollection, AbstractFloat2LongSortedMap.ValuesCollection, AbstractInt2LongSortedMap.ValuesCollection, AbstractLong2BooleanSortedMap.KeySet, AbstractLong2ByteSortedMap.KeySet, AbstractLong2CharSortedMap.KeySet, AbstractLong2DoubleSortedMap.KeySet, AbstractLong2FloatSortedMap.KeySet, AbstractLong2IntSortedMap.KeySet, AbstractLong2LongSortedMap.KeySet, AbstractLong2LongSortedMap.ValuesCollection, AbstractLong2ObjectSortedMap.KeySet, AbstractLong2ReferenceSortedMap.KeySet, AbstractLong2ShortSortedMap.KeySet, AbstractLongBigList, AbstractLongBigList.LongSubList, AbstractLongCollection, AbstractLongList, AbstractLongList.LongSubList, AbstractLongSet, AbstractLongSortedSet, AbstractObject2LongSortedMap.ValuesCollection, AbstractReference2LongSortedMap.ValuesCollection, AbstractShort2LongSortedMap.ValuesCollection, LongArrayList, LongArraySet, LongAVLTreeSet, LongBigArrayBigList, LongBigLists.EmptyBigList, LongBigLists.ListBigList, LongBigLists.Singleton, LongBigLists.SynchronizedBigList, LongBigLists.UnmodifiableBigList, LongCollections.EmptyCollection, LongCollections.IterableCollection, LongCollections.SynchronizedCollection, LongCollections.UnmodifiableCollection, LongLinkedOpenCustomHashSet, LongLinkedOpenHashSet, LongLists.EmptyList, LongLists.Singleton, LongLists.SynchronizedList, LongLists.UnmodifiableList, LongOpenCustomHashSet, LongOpenHashBigSet, LongOpenHashSet, LongRBTreeSet, LongSets.EmptySet, LongSets.Singleton, LongSets.SynchronizedSet, LongSets.UnmodifiableSet, LongSortedSets.EmptySet, LongSortedSets.Singleton, LongSortedSets.SynchronizedSortedSet, LongSortedSets.UnmodifiableSortedSet

public interface LongIterable
extends Iterable<Long>

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
 LongIterator iterator()
          Returns a type-specific iterator.
 

Method Detail

iterator

LongIterator iterator()
Returns a type-specific iterator. Note that this specification strengthens the one given in Iterable.iterator().

Specified by:
iterator in interface Iterable<Long>
Returns:
a type-specific iterator.


Copyright © 2011. All Rights Reserved.