public static class InternalIterator.Filtering<T> extends java.lang.Object implements InternalIterator<T>
InternalIterator.Collector<T>, InternalIterator.Filtering<T>
Constructor and Description |
---|
Filtering(InternalIterator<? super T> iterator,
Condition<? super T> filter) |
Modifier and Type | Method and Description |
---|---|
static <T> InternalIterator<T> |
create(InternalIterator<? super T> iterator,
Condition<? super T> filter) |
static <T> InternalIterator |
createInstanceOf(InternalIterator<T> iterator,
java.lang.Class<T> aClass) |
static <T,V extends T> |
createInstanceOf(InternalIterator<V> iterator,
FilteringIterator.InstanceOf<V> filter) |
boolean |
visit(T value) |
public Filtering(InternalIterator<? super T> iterator, Condition<? super T> filter)
public boolean visit(T value)
visit
in interface InternalIterator<T>
public static <T> InternalIterator<T> create(InternalIterator<? super T> iterator, Condition<? super T> filter)
public static <T,V extends T> InternalIterator<T> createInstanceOf(InternalIterator<V> iterator, FilteringIterator.InstanceOf<V> filter)
public static <T> InternalIterator createInstanceOf(InternalIterator<T> iterator, java.lang.Class<T> aClass)