it.unimi.dsi.fastutil.bytes
Class AbstractByte2ShortSortedMap.KeySetIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.bytes.AbstractByteIterator
      extended by it.unimi.dsi.fastutil.bytes.AbstractByteBidirectionalIterator
          extended by it.unimi.dsi.fastutil.bytes.AbstractByte2ShortSortedMap.KeySetIterator
All Implemented Interfaces:
BidirectionalIterator<Byte>, ByteBidirectionalIterator, ByteIterator, ObjectBidirectionalIterator<Byte>, ObjectIterator<Byte>, Iterator<Byte>
Enclosing class:
AbstractByte2ShortSortedMap

protected static class AbstractByte2ShortSortedMap.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.


Field Summary
protected  ObjectBidirectionalIterator<Map.Entry<Byte,Short>> i
           
 
Constructor Summary
AbstractByte2ShortSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Byte,Short>> i)
           
 
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 it.unimi.dsi.fastutil.bytes.AbstractByteBidirectionalIterator
back, previous
 
Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteIterator
next, remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteIterator
skip
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectIterator
skip
 
Methods inherited from interface java.util.Iterator
next, remove
 

Field Detail

i

protected final ObjectBidirectionalIterator<Map.Entry<Byte,Short>> i
Constructor Detail

AbstractByte2ShortSortedMap.KeySetIterator

public AbstractByte2ShortSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Byte,Short>> i)
Method Detail

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.