|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.jmlunit.strategies.DoubleAbstractIterator
org.jmlspecs.jmlunit.strategies.DoubleArrayIterator
A DoubleIterator over arrays of double elements.
| Field Summary | |
private double[] |
elems
The elements |
private int |
next
The next element's index (zero based) |
| Constructor Summary | |
|
DoubleArrayIterator(double[] elems)
Initialize this iterator to iterate over a clone of the array |
protected |
DoubleArrayIterator(int next,
double[] elems)
Initialize this iterator to iterate over a clone of the array, starting at the given next index |
| Method Summary | |
void |
advance()
Advance the state of this iteration to the next position. |
boolean |
atEnd()
Is this iterator at its end? |
Object |
clone()
Return a copy of this iterator in the same state as this object. |
double |
getDouble()
Return the current double in this iterator. |
String |
toString()
|
| Methods inherited from class org.jmlspecs.jmlunit.strategies.DoubleAbstractIterator |
get |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int next
private double[] elems
| Constructor Detail |
public DoubleArrayIterator(double[] elems)
protected DoubleArrayIterator(int next,
double[] elems)
| Method Detail |
public boolean atEnd()
IndefiniteIterator
public double getDouble()
DoubleIterator
public void advance()
IndefiniteIterator
public Object clone()
DoubleIterator
clone in interface DoubleIteratorclone in class DoubleAbstractIteratorpublic String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||