it.unimi.dsi.fastutil.longs
Class AbstractLong2ObjectSortedMap.KeySetIterator<V>

java.lang.Object
  extended by it.unimi.dsi.fastutil.longs.AbstractLongIterator
      extended by it.unimi.dsi.fastutil.longs.AbstractLongBidirectionalIterator
          extended by 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.


Field Summary
protected  ObjectBidirectionalIterator<Map.Entry<Long,V>> i
           
 
Constructor Summary
AbstractLong2ObjectSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Long,V>> i)
           
 
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 it.unimi.dsi.fastutil.longs.AbstractLongBidirectionalIterator
back, previous
 
Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLongIterator
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.longs.LongIterator
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<Long,V>> i
Constructor Detail

AbstractLong2ObjectSortedMap.KeySetIterator

public AbstractLong2ObjectSortedMap.KeySetIterator(ObjectBidirectionalIterator<Map.Entry<Long,V>> i)
Method Detail

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.