public static class SparseVector.Iterator extends Object implements Iterator<SparseVector.Entry>
Iterator.remove()
method to throw an exception when called.| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
SparseVector.Entry |
next() |
void |
remove()
Overridden to avoid the vector being altered.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic boolean hasNext()
hasNext in interface Iterator<SparseVector.Entry>public SparseVector.Entry next()
next in interface Iterator<SparseVector.Entry>public void remove()
remove in interface Iterator<SparseVector.Entry>UnsupportedOperationException - always; set the element to zero
insteadCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.