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