|
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.BooleanCompositeIterator
Composition of several BooleanIterators.
BooleanIterator| Field Summary | |
private int |
currentIterator
What iterator we are working with now. |
private BooleanIterator[] |
iters
The iterators that are being sequenced |
| Constructor Summary | |
protected |
BooleanCompositeIterator(int currentIterator,
BooleanIterator[] iters)
Initialize this composite to iterate over clones of the given iterators, in order, starting at the given current iterator. |
|
BooleanCompositeIterator(BooleanIterator iter)
Initialize this composite to iterate over the given iterator. |
|
BooleanCompositeIterator(BooleanIterator iter1,
BooleanIterator iter2)
Initialize this composite to iterate over the given iterators, in order. |
|
BooleanCompositeIterator(BooleanIterator[] iters)
Initialize this composite to iterate over clones of the given iterators, in order. |
| 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 next element in this iteration. |
private void |
setCurrentIterator()
Set the current iterator to the next one that has elements, if any. |
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 currentIterator
private final BooleanIterator[] iters
| Constructor Detail |
public BooleanCompositeIterator(BooleanIterator iter)
public BooleanCompositeIterator(BooleanIterator iter1,
BooleanIterator iter2)
public BooleanCompositeIterator(BooleanIterator[] iters)
protected BooleanCompositeIterator(int currentIterator,
BooleanIterator[] iters)
| Method Detail |
public boolean atEnd()
IndefiniteIterator
public boolean getBoolean()
throws NoSuchElementException
NoSuchElementException;
NoSuchElementExceptionpublic void advance()
IndefiniteIterator
private void setCurrentIterator()
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 | ||||||||||