|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.jmlunit.strategies.AbstractFilteringIteratorDecorator
An filtering decorator for an indefinite iterator.
| Field Summary | |
private IndefiniteIterator |
rawElems
|
| Constructor Summary | |
AbstractFilteringIteratorDecorator(IndefiniteIterator iter)
Initialize this iterator decorator |
|
AbstractFilteringIteratorDecorator(IndefiniteIterator iter,
Object 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(Object elem)
Return true if the element is to be returned by the get() method. |
boolean |
atEnd()
Is this iterator at its end? |
Object |
clone()
Return a copy of this iterator in the same state as this object. |
Object |
get()
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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private IndefiniteIterator rawElems
| Constructor Detail |
public AbstractFilteringIteratorDecorator(IndefiniteIterator iter)
public AbstractFilteringIteratorDecorator(IndefiniteIterator iter,
Object ignored)
| Method Detail |
public void initialize()
private void setCursor()
public abstract boolean approve(Object elem)
public boolean atEnd()
IndefiniteIterator
atEnd in interface IndefiniteIterator
public Object get()
throws NoSuchElementException
get in interface IndefiniteIteratorNoSuchElementExceptionpublic void advance()
IndefiniteIterator
advance in interface IndefiniteIteratorpublic Object clone()
IndefiniteIterator
clone in interface IndefiniteIteratorclone in class Objectpublic String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||