- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
- Iterators
public abstract static class Iterators.Filter<T>
extends Object
Filter out objects from another iterator.
-
Constructor Summary
Constructors
-
Method Summary
boolean
protected abstract boolean
Return true to retain the value.
final void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
matches
protected abstract boolean matches(T value)
Return true to retain the value.
-
hasNext
public boolean hasNext()
-
-
remove
public final void remove()
- Specified by:
remove
in interface Iterator<T>