public class MapFilterIterator<T,X> extends NiceIterator<X> implements ExtendedIterator<X>
| Constructor and Description |
|---|
MapFilterIterator(MapFilter<T,X> fl,
ExtendedIterator<T> e)
Creates a sub-Iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
default close: don't need to do anything.
|
boolean |
hasNext()
Are there any more acceptable objects.
|
X |
next()
The next acceptable object in the iterator.
|
void |
remove()
remove's the member from the underlying
Iterator;
hasNext() may not be called between calls to
next() and remove(). |
andThen, andThen, asList, asSet, close, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, filterDrop, filterKeep, mapWith, nextOptional, removeNext, toList, toSetforEachRemainingpublic MapFilterIterator(MapFilter<T,X> fl, ExtendedIterator<T> e)
fl - An object is included if it is accepted by this Filter.e - The parent Iterator.public boolean hasNext()
public void close()
NiceIteratorclose in interface ClosableIterator<X>close in class NiceIterator<X>public void remove()
Iterator;
hasNext() may not be called between calls to
next() and remove().Licenced under the Apache License, Version 2.0