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

java.lang.Object
  extended by it.unimi.dsi.fastutil.shorts.AbstractShortIterator
      extended by it.unimi.dsi.fastutil.objects.AbstractReference2ShortSortedMap.ValuesIterator<K>
All Implemented Interfaces:
ShortIterator, Iterator<Short>
Enclosing class:
AbstractReference2ShortSortedMap<K>

protected static class AbstractReference2ShortSortedMap.ValuesIterator<K>
extends AbstractShortIterator

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,Short>> i
           
 
Constructor Summary
AbstractReference2ShortSortedMap.ValuesIterator(ObjectBidirectionalIterator<Map.Entry<K,Short>> i)
           
 
Method Summary
 boolean hasNext()
           
 short nextShort()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.AbstractShortIterator
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,Short>> i
Constructor Detail

AbstractReference2ShortSortedMap.ValuesIterator

public AbstractReference2ShortSortedMap.ValuesIterator(ObjectBidirectionalIterator<Map.Entry<K,Short>> i)
Method Detail

nextShort

public short nextShort()
Description copied from class: AbstractShortIterator
Delegates to the corresponding generic method.

Specified by:
nextShort in interface ShortIterator
Overrides:
nextShort in class AbstractShortIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

hasNext

public boolean hasNext()


Copyright © 2011. All Rights Reserved.