it.unimi.dsi.fastutil.objects
Class AbstractObject2LongSortedMap.ValuesIterator<K>

java.lang.Object
  extended by it.unimi.dsi.fastutil.longs.AbstractLongIterator
      extended by it.unimi.dsi.fastutil.objects.AbstractObject2LongSortedMap.ValuesIterator<K>
All Implemented Interfaces:
LongIterator, Iterator<Long>
Enclosing class:
AbstractObject2LongSortedMap<K>

protected static class AbstractObject2LongSortedMap.ValuesIterator<K>
extends AbstractLongIterator

A wrapper exhibiting a map iterator as an iterator on values.

To provide an iterator on values, just create an instance of this class using the corresponding iterator on entries.


Field Summary
protected  ObjectBidirectionalIterator<Map.Entry<K,Long>> i
           
 
Constructor Summary
AbstractObject2LongSortedMap.ValuesIterator(ObjectBidirectionalIterator<Map.Entry<K,Long>> i)
           
 
Method Summary
 boolean hasNext()
           
 long nextLong()
          Delegates to the corresponding generic method.
 
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
 

Field Detail

i

protected final ObjectBidirectionalIterator<Map.Entry<K,Long>> i
Constructor Detail

AbstractObject2LongSortedMap.ValuesIterator

public AbstractObject2LongSortedMap.ValuesIterator(ObjectBidirectionalIterator<Map.Entry<K,Long>> 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()

hasNext

public boolean hasNext()


Copyright © 2011. All Rights Reserved.