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