public interface FluentIterator<E>
extends java.util.Iterator<E>
Iterator that can be decorated with a fluent interface.| Modifier and Type | Method and Description |
|---|---|
FluentIterator<E> |
filtered(Filter<E> filter)
Returns a
FluentIterator that filters the elements of this FluentIterator with the given
filter. |
<T> FluentIterator<T> |
mapped(Function<E,T> function)
|
FluentIterator<E> filtered(Filter<E> filter)
FluentIterator that filters the elements of this FluentIterator with the given
filter.filter - The Filter to filter the Iterator with.FluentIterator.<T> FluentIterator<T> mapped(Function<E,T> function)
T - The type of the mapped elements.function - The Function to map the original Iterator.FluentIterator.