|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.matrix.doubles.matrixtype.sparse.SparseVector.Iterator
public static class SparseVector.Iterator
This wrapper class overrides the Iterator.remove()
method for throwing exception when it is called.
| Method Summary | |
|---|---|
boolean |
hasNext()
|
SparseVector.Entry |
next()
|
void |
remove()
Overriden to avoid the vector being altered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<SparseVector.Entry>public SparseVector.Entry next()
next in interface java.util.Iterator<SparseVector.Entry>public void remove()
remove in interface java.util.Iterator<SparseVector.Entry>java.lang.UnsupportedOperationException - always; set the element to zero instead
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||