it.unimi.dsi.fastutil.doubles
Class AbstractDouble2BooleanSortedMap.ValuesIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
      extended by it.unimi.dsi.fastutil.doubles.AbstractDouble2BooleanSortedMap.ValuesIterator
All Implemented Interfaces:
BooleanIterator, Iterator<Boolean>
Enclosing class:
AbstractDouble2BooleanSortedMap

protected static class AbstractDouble2BooleanSortedMap.ValuesIterator
extends AbstractBooleanIterator

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<Double,Boolean>> i
           
 
Constructor Summary
AbstractDouble2BooleanSortedMap.ValuesIterator(ObjectBidirectionalIterator<Map.Entry<Double,Boolean>> i)
           
 
Method Summary
 boolean hasNext()
           
 boolean nextBoolean()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
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<Double,Boolean>> i
Constructor Detail

AbstractDouble2BooleanSortedMap.ValuesIterator

public AbstractDouble2BooleanSortedMap.ValuesIterator(ObjectBidirectionalIterator<Map.Entry<Double,Boolean>> i)
Method Detail

nextBoolean

public boolean nextBoolean()
Description copied from class: AbstractBooleanIterator
Delegates to the corresponding generic method.

Specified by:
nextBoolean in interface BooleanIterator
Overrides:
nextBoolean in class AbstractBooleanIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

hasNext

public boolean hasNext()


Copyright © 2011. All Rights Reserved.