protected class OpenMapRealVector.OpenMapSparseIterator extends Object implements Iterator<RealVector.Entry>
This implementation is fail-fast, so cannot be used to modify any zero element.
| Modifier and Type | Field and Description |
|---|---|
private RealVector.Entry |
current
Current entry.
|
private OpenIntToDoubleHashMap.Iterator |
iter
Underlying iterator.
|
| Modifier | Constructor and Description |
|---|---|
protected |
OpenMapRealVector.OpenMapSparseIterator()
Simple constructor.
|
private final OpenIntToDoubleHashMap.Iterator iter
private final RealVector.Entry current
protected OpenMapRealVector.OpenMapSparseIterator()
public boolean hasNext()
hasNext in interface Iterator<RealVector.Entry>public RealVector.Entry next()
next in interface Iterator<RealVector.Entry>public void remove()
remove in interface Iterator<RealVector.Entry>Copyright (c) 2003-2014 Apache Software Foundation