it.unimi.dsi.fastutil.longs
Class AbstractLong2ObjectSortedMap.KeySetIterator<V>
java.lang.Object
it.unimi.dsi.fastutil.longs.AbstractLongIterator
it.unimi.dsi.fastutil.longs.AbstractLongBidirectionalIterator
it.unimi.dsi.fastutil.longs.AbstractLong2ObjectSortedMap.KeySetIterator<V>
- All Implemented Interfaces:
- BidirectionalIterator<Long>, LongBidirectionalIterator, LongIterator, ObjectBidirectionalIterator<Long>, ObjectIterator<Long>, Iterator<Long>
- Enclosing class:
- AbstractLong2ObjectSortedMap<V>
protected static class AbstractLong2ObjectSortedMap.KeySetIterator<V>
- extends AbstractLongBidirectionalIterator
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.
Method Summary |
boolean |
hasNext()
|
boolean |
hasPrevious()
Returns whether there is a previous element. |
long |
nextLong()
Delegates to the corresponding generic method. |
long |
previousLong()
Delegates to the corresponding generic method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i
protected final ObjectBidirectionalIterator<Map.Entry<Long,V>> i
AbstractLong2ObjectSortedMap.KeySetIterator
public AbstractLong2ObjectSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Long,V>> i)
nextLong
public long nextLong()
- Description copied from class:
AbstractLongIterator
- Delegates to the corresponding generic method.
- Specified by:
nextLong
in interface LongIterator
- Overrides:
nextLong
in class AbstractLongIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousLong
public long previousLong()
- Description copied from class:
AbstractLongBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousLong
in interface LongBidirectionalIterator
- Overrides:
previousLong
in class AbstractLongBidirectionalIterator
- Returns:
- the previous element in the iteration.
- See Also:
ListIterator.previous()
hasNext
public boolean hasNext()
hasPrevious
public boolean hasPrevious()
- Description copied from interface:
BidirectionalIterator
- Returns whether there is a previous element.
- Returns:
- whether there is a previous element.
- See Also:
ListIterator.hasPrevious()
Copyright © 2011. All Rights Reserved.