|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--xxl.cursors.DecoratorCursor
|
+--xxl.cursors.Filter
This class is used to wrap a Cursor, Iterator or PeekIterator. Only those elements for which a specified Function returns Boolean.TRUE are returned by next().
| Field Summary | |
protected Function |
function
The Function used to evaluate an object. |
| Fields inherited from class xxl.cursors.DecoratorCursor |
cursor |
| Constructor Summary | |
Filter(java.util.Iterator iterator,
Function function)
|
|
| Method Summary | |
boolean |
hasNext()
Returns true if the iteration has more elements. |
| Methods inherited from class xxl.cursors.DecoratorCursor |
close,
next,
peek,
remove,
reset,
supportsPeek,
update |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected Function function
| Constructor Detail |
public Filter(java.util.Iterator iterator,
Function function)
| Method Detail |
public boolean hasNext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||