|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.jmlunit.strategies.LongAbstractIterator
org.jmlspecs.jmlunit.strategies.LongArrayIterator
A LongIterator over arrays of long elements.
| Field Summary | |
private long[] |
elems
The elements |
private int |
next
The next element's index (zero based) |
| Constructor Summary | |
protected |
LongArrayIterator(int next,
long[] elems)
Initialize this iterator to iterate over a clone of the array, starting at the given next index |
|
LongArrayIterator(long[] elems)
Initialize this iterator to iterate over a clone of the array |
| 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. |
long |
getLong()
Return the current long in this iterator. |
String |
toString()
|
| Methods inherited from class org.jmlspecs.jmlunit.strategies.LongAbstractIterator |
get |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int next
private long[] elems
| Constructor Detail |
public LongArrayIterator(long[] elems)
protected LongArrayIterator(int next,
long[] elems)
| Method Detail |
public boolean atEnd()
IndefiniteIterator
public long getLong()
LongIterator
public void advance()
IndefiniteIterator
public Object clone()
LongIterator
clone in interface LongIteratorclone in class LongAbstractIteratorpublic String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||