it.unimi.dsi.fastutil.shorts
Class AbstractShort2DoubleSortedMap.KeySetIterator
java.lang.Object
it.unimi.dsi.fastutil.shorts.AbstractShortIterator
it.unimi.dsi.fastutil.shorts.AbstractShortBidirectionalIterator
it.unimi.dsi.fastutil.shorts.AbstractShort2DoubleSortedMap.KeySetIterator
- All Implemented Interfaces:
- BidirectionalIterator<Short>, ObjectBidirectionalIterator<Short>, ObjectIterator<Short>, ShortBidirectionalIterator, ShortIterator, Iterator<Short>
- Enclosing class:
- AbstractShort2DoubleSortedMap
protected static class AbstractShort2DoubleSortedMap.KeySetIterator
- extends AbstractShortBidirectionalIterator
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. |
short |
nextShort()
Delegates to the corresponding generic method. |
short |
previousShort()
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<Short,Double>> i
AbstractShort2DoubleSortedMap.KeySetIterator
public AbstractShort2DoubleSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Short,Double>> i)
nextShort
public short nextShort()
- Description copied from class:
AbstractShortIterator
- Delegates to the corresponding generic method.
- Specified by:
nextShort
in interface ShortIterator
- Overrides:
nextShort
in class AbstractShortIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousShort
public short previousShort()
- Description copied from class:
AbstractShortBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousShort
in interface ShortBidirectionalIterator
- Overrides:
previousShort
in class AbstractShortBidirectionalIterator
- 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.