public class FilteredIterator<T> extends PeekIterator<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
FilteredIterator.If<T> |
static class |
FilteredIterator.IgnoreErrors<T>
Wraps an iterator and skips elements that produce an exception
|
PeekIterator.ElementaryPeekIterator<T>, PeekIterator.SimplePeekIterator<T>| Modifier and Type | Field and Description |
|---|---|
protected FilteredIterator.If<T> |
condition |
protected Iterator<T> |
iterator |
closed, EMPTY, fetchedNextValue, next| Modifier | Constructor and Description |
|---|---|
protected |
FilteredIterator(Iterator<T> i) |
|
FilteredIterator(Iterator<T> i,
FilteredIterator.If<T> condition) |
| Modifier and Type | Method and Description |
|---|---|
T |
internalNext()
Returns the next or NULL if no next element is available
|
void |
remove()
Removes the current element, if supported by the underlying iterator
|
asList, asList, asSet, asSet, asSet, close, emptyIterator, hasNext, internalSilentNext, iterator, list, list, main, next, nextOrNull, numElements, numElements, peek, toString, toString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEachRemainingforEach, spliteratorprotected FilteredIterator.If<T> condition
public FilteredIterator(Iterator<T> i, FilteredIterator.If<T> condition)
public T internalNext()
PeekIteratorinternalNext in class PeekIterator<T>public void remove()
PeekIteratorCopyright © 2018. All rights reserved.