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

java.lang.Object
  extended by it.unimi.dsi.fastutil.bytes.AbstractByteIterator
      extended by it.unimi.dsi.fastutil.ints.AbstractInt2ByteSortedMap.ValuesIterator
All Implemented Interfaces:
ByteIterator, Iterator<Byte>
Enclosing class:
AbstractInt2ByteSortedMap

protected static class AbstractInt2ByteSortedMap.ValuesIterator
extends AbstractByteIterator

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<Integer,Byte>> i
           
 
Constructor Summary
AbstractInt2ByteSortedMap.ValuesIterator(ObjectBidirectionalIterator<Map.Entry<Integer,Byte>> i)
           
 
Method Summary
 boolean hasNext()
           
 byte nextByte()
          Delegates to the corresponding generic method.
 
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
 

Field Detail

i

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

AbstractInt2ByteSortedMap.ValuesIterator

public AbstractInt2ByteSortedMap.ValuesIterator(ObjectBidirectionalIterator<Map.Entry<Integer,Byte>> 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()

hasNext

public boolean hasNext()


Copyright © 2011. All Rights Reserved.