gov.sandia.cognition.collection
Class AbstractMutableDoubleMap.SimpleIterator<KeyType>

java.lang.Object
  extended by gov.sandia.cognition.collection.AbstractMutableDoubleMap.SimpleIterator<KeyType>
Type Parameters:
KeyType - The type of the key in the map.
All Implemented Interfaces:
Iterator<AbstractMutableDoubleMap.SimpleEntry<KeyType>>
Enclosing class:
AbstractMutableDoubleMap<KeyType>

protected static class AbstractMutableDoubleMap.SimpleIterator<KeyType>
extends Object
implements Iterator<AbstractMutableDoubleMap.SimpleEntry<KeyType>>

Simple iterator for DefaultInfiniteVector


Constructor Summary
AbstractMutableDoubleMap.SimpleIterator(Iterator<? extends Map.Entry<KeyType,MutableDouble>> delegate)
          Default constructor
 
Method Summary
 boolean hasNext()
           
 AbstractMutableDoubleMap.SimpleEntry<KeyType> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMutableDoubleMap.SimpleIterator

public AbstractMutableDoubleMap.SimpleIterator(Iterator<? extends Map.Entry<KeyType,MutableDouble>> delegate)
Default constructor

Parameters:
delegate - Iterator that does all the work
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<AbstractMutableDoubleMap.SimpleEntry<KeyType>>

next

public AbstractMutableDoubleMap.SimpleEntry<KeyType> next()
Specified by:
next in interface Iterator<AbstractMutableDoubleMap.SimpleEntry<KeyType>>

remove

public void remove()
Specified by:
remove in interface Iterator<AbstractMutableDoubleMap.SimpleEntry<KeyType>>