it.unimi.dsi.fastutil.ints
Class AbstractInt2ByteSortedMap.KeySetIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.ints.AbstractIntIterator
      extended by it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
          extended by it.unimi.dsi.fastutil.ints.AbstractInt2ByteSortedMap.KeySetIterator
All Implemented Interfaces:
BidirectionalIterator<Integer>, IntBidirectionalIterator, IntIterator, ObjectBidirectionalIterator<Integer>, ObjectIterator<Integer>, Iterator<Integer>
Enclosing class:
AbstractInt2ByteSortedMap

protected static class AbstractInt2ByteSortedMap.KeySetIterator
extends AbstractIntBidirectionalIterator

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<Integer,Byte>> i
           
 
Constructor Summary
AbstractInt2ByteSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Integer,Byte>> i)
           
 
Method Summary
 boolean hasNext()
           
 boolean hasPrevious()
          Returns whether there is a previous element.
 int nextInt()
          Delegates to the corresponding generic method.
 int previousInt()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
back, previous
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntIterator
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.ints.IntIterator
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<Integer,Byte>> i
Constructor Detail

AbstractInt2ByteSortedMap.KeySetIterator

public AbstractInt2ByteSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Integer,Byte>> i)
Method Detail

nextInt

public int nextInt()
Description copied from class: AbstractIntIterator
Delegates to the corresponding generic method.

Specified by:
nextInt in interface IntIterator
Overrides:
nextInt in class AbstractIntIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

previousInt

public int previousInt()
Description copied from class: AbstractIntBidirectionalIterator
Delegates to the corresponding generic method.

Specified by:
previousInt in interface IntBidirectionalIterator
Overrides:
previousInt in class AbstractIntBidirectionalIterator
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.