it.unimi.dsi.fastutil.bytes
Class AbstractByte2CharSortedMap.KeySetIterator
java.lang.Object
it.unimi.dsi.fastutil.bytes.AbstractByteIterator
it.unimi.dsi.fastutil.bytes.AbstractByteBidirectionalIterator
it.unimi.dsi.fastutil.bytes.AbstractByte2CharSortedMap.KeySetIterator
- All Implemented Interfaces:
- BidirectionalIterator<Byte>, ByteBidirectionalIterator, ByteIterator, ObjectBidirectionalIterator<Byte>, ObjectIterator<Byte>, Iterator<Byte>
- Enclosing class:
- AbstractByte2CharSortedMap
protected static class AbstractByte2CharSortedMap.KeySetIterator
- extends AbstractByteBidirectionalIterator
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. |
byte |
nextByte()
Delegates to the corresponding generic method. |
byte |
previousByte()
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<Byte,Character>> i
AbstractByte2CharSortedMap.KeySetIterator
public AbstractByte2CharSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Byte,Character>> i)
nextByte
public byte nextByte()
- Description copied from class:
AbstractByteIterator
- Delegates to the corresponding generic method.
- Specified by:
nextByte
in interface ByteIterator
- Overrides:
nextByte
in class AbstractByteIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousByte
public byte previousByte()
- Description copied from class:
AbstractByteBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousByte
in interface ByteBidirectionalIterator
- Overrides:
previousByte
in class AbstractByteBidirectionalIterator
- 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.