public class FilterIterator
extends java.lang.Object
implements java.util.Iterator
| Constructor and Description |
|---|
FilterIterator(java.util.Iterator tuples,
Predicate p)
Create a new FilterIterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove()
Not supported.
|
public FilterIterator(java.util.Iterator tuples,
Predicate p)
tuples - an iterator over tuplesp - the filter predicate to usepublic java.lang.Object next()
next in interface java.util.IteratorIterator.next()public boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()public void remove()
remove in interface java.util.IteratorIterator.remove()