|
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.BooleanAbstractFilteringIteratorDecorator
An filtering decorator for an indefinite iterator over type boolean.
| Field Summary | |
private BooleanIterator |
rawElems
|
| Constructor Summary | |
BooleanAbstractFilteringIteratorDecorator(BooleanIterator iter)
Initialize this iterator decorator |
|
BooleanAbstractFilteringIteratorDecorator(BooleanIterator iter,
boolean ignored)
Partially intialize this iterator decorator, with a call to initialize needed after this call. |
|
| Method Summary | |
void |
advance()
Advance the state of this iteration to the next position. |
abstract boolean |
approve(boolean elem)
Return true if the element is to be returned by the getBoolean() method. |
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 approved element. |
void |
initialize()
Complete initialization of this object. |
private void |
setCursor()
Set the cursor to the next element that is approved, 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 BooleanIterator rawElems
| Constructor Detail |
public BooleanAbstractFilteringIteratorDecorator(BooleanIterator iter)
public BooleanAbstractFilteringIteratorDecorator(BooleanIterator iter,
boolean ignored)
| Method Detail |
public void initialize()
private void setCursor()
public abstract boolean approve(boolean elem)
public boolean atEnd()
IndefiniteIterator
public boolean getBoolean()
throws NoSuchElementException
NoSuchElementExceptionpublic 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 | ||||||||||