Element.stream(Class, boolean)
seems to be a more usable
alternative.@Deprecated public class DFSFilteringIterator<E extends Element> extends Object implements Iterator<E>
Constructor and Description |
---|
DFSFilteringIterator(Iterator<? extends Element> rootIterator,
Class<? extends E> resultClass,
Filter<? super E> filter)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Deprecated.
|
E |
next()
Deprecated.
|
void |
remove()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public DFSFilteringIterator(@Nonnull Iterator<? extends Element> rootIterator, @Nonnull Class<? extends E> resultClass, @Nullable Filter<? super E> filter)
rootIterator
- the iterator over the root elements of the forestresultClass
- the class of the elements to look for in the forest. All the returned elements will be
assignable to this class.filter
- optional filter that further filters out unwanted elements.Copyright © 2014-2021 Lukas Krejci. All Rights Reserved.