it.unimi.dsi.fastutil.doubles
Interface DoubleIterable
- All Superinterfaces:
- java.lang.Iterable<java.lang.Double>
- All Known Subinterfaces:
- DoubleBigList, DoubleCollection, DoubleList, DoubleSet, DoubleSortedSet
- All Known Implementing Classes:
- AbstractDoubleBigList, AbstractDoubleBigList.DoubleSubList, AbstractDoubleCollection, AbstractDoubleList, AbstractDoubleList.DoubleSubList, AbstractDoubleSet, AbstractDoubleSortedSet, DoubleArrayList, DoubleArraySet, DoubleAVLTreeSet, DoubleBigArrayBigList, DoubleBigLists.EmptyBigList, DoubleBigLists.ListBigList, DoubleBigLists.Singleton, DoubleBigLists.SynchronizedBigList, DoubleBigLists.UnmodifiableBigList, DoubleCollections.EmptyCollection, DoubleCollections.IterableCollection, DoubleCollections.SynchronizedCollection, DoubleCollections.UnmodifiableCollection, DoubleLinkedOpenCustomHashSet, DoubleLinkedOpenHashSet, DoubleLists.EmptyList, DoubleLists.Singleton, DoubleLists.SynchronizedList, DoubleLists.UnmodifiableList, DoubleOpenCustomHashSet, DoubleOpenHashBigSet, DoubleOpenHashSet, DoubleRBTreeSet, DoubleSets.EmptySet, DoubleSets.Singleton, DoubleSets.SynchronizedSet, DoubleSets.UnmodifiableSet, DoubleSortedSets.EmptySet, DoubleSortedSets.Singleton, DoubleSortedSets.SynchronizedSortedSet, DoubleSortedSets.UnmodifiableSortedSet
public interface DoubleIterable
- extends java.lang.Iterable<java.lang.Double>
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
DoubleIterator 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.Double>
- Returns:
- a type-specific iterator.