T
- public class FilterIterator<T> extends Object implements Iterator<T>
Constructor and Description |
---|
FilterIterator(Iterator<T> iterator,
Predicate predicate)
Create a new filtered iterator based on the given
iterator . |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public void remove()
remove
in interface Iterator<T>
UnsupportedOperationException
- alwaysIterator.remove()
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.