T - The type of elements returned by this iterator.@NotThreadSafe public abstract class FilteringIterator<T> extends Object implements Iterator<T>
accept(Object) method.| Modifier and Type | Field and Description |
|---|---|
private Boolean |
hasNext |
private Iterator<T> |
it |
private T |
next |
| Modifier | Constructor and Description |
|---|---|
protected |
FilteringIterator(Iterable<T> iterable)
Constructs a new filtering iterator which filters the given iterable.
|
protected |
FilteringIterator(Iterator<T> iterator)
Constructs a new filtering iterator which filters the given iterator.
|
@CheckForNull private Boolean hasNext
protected FilteringIterator(Iterable<T> iterable)
iterable - the iterable to filter.Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.