protected static class AbstractLong2IntSortedMap.KeySetIterator
extends java.lang.Object
implements it.unimi.dsi.fastutil.longs.LongBidirectionalIterator
To provide an iterator on keys, just create an instance of this class using the corresponding iterator on entries.
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Long2IntMap.Entry> |
i |
| Constructor and Description |
|---|
KeySetIterator(it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Long2IntMap.Entry> i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious() |
long |
nextLong() |
long |
previousLong() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitback, previous, skipprotected final it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Long2IntMap.Entry> i
public KeySetIterator(it.unimi.dsi.fastutil.objects.ObjectBidirectionalIterator<Long2IntMap.Entry> i)
public long nextLong()
nextLong in interface it.unimi.dsi.fastutil.longs.LongIteratornextLong in interface java.util.PrimitiveIterator.OfLongpublic long previousLong()
previousLong in interface it.unimi.dsi.fastutil.longs.LongBidirectionalIteratorpublic boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Long>public boolean hasPrevious()
hasPrevious in interface it.unimi.dsi.fastutil.BidirectionalIterator<java.lang.Long>