Package it.unimi.dsi.fastutil.longs
Class AbstractLong2DoubleSortedMap.KeySetIterator
java.lang.Object
it.unimi.dsi.fastutil.longs.AbstractLong2DoubleSortedMap.KeySetIterator
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BidirectionalIterator<Long>,it.unimi.dsi.fastutil.longs.LongBidirectionalIterator,it.unimi.dsi.fastutil.longs.LongIterator,it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Long>,it.unimi.dsi.fastutil.objects.ObjectIterator<Long>,Iterator<Long>,PrimitiveIterator<Long,,LongConsumer> PrimitiveIterator.OfLong
- Enclosing class:
AbstractLong2DoubleSortedMap
protected static class AbstractLong2DoubleSortedMap.KeySetIterator
extends Object
implements it.unimi.dsi.fastutil.longs.LongBidirectionalIterator
A wrapper exhibiting a map iterator as an iterator on keys.
To provide an iterator on keys, just create an instance of this class using the corresponding iterator on entries.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Long2DoubleMap.Entry> -
Constructor Summary
ConstructorsConstructorDescriptionKeySetIterator(it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Long2DoubleMap.Entry> i) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.longs.LongBidirectionalIterator
back, previous, skipMethods inherited from interface it.unimi.dsi.fastutil.longs.LongIterator
forEachRemaining, forEachRemaining, nextMethods inherited from interface java.util.PrimitiveIterator.OfLong
forEachRemaining
-
Field Details
-
i
-
-
Constructor Details
-
KeySetIterator
public KeySetIterator(it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Long2DoubleMap.Entry> i)
-
-
Method Details
-
nextLong
public long nextLong()- Specified by:
nextLongin interfaceit.unimi.dsi.fastutil.longs.LongIterator- Specified by:
nextLongin interfacePrimitiveIterator.OfLong
-
previousLong
public long previousLong()- Specified by:
previousLongin interfaceit.unimi.dsi.fastutil.longs.LongBidirectionalIterator
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceit.unimi.dsi.fastutil.BidirectionalIterator<Long>
-