public final class Fluent<E> extends AbstractBaseIterator<E> implements FluentIterator<E>
FluentIterator.| Constructor and Description |
|---|
Fluent(java.util.Iterator<E> delegate)
Provides a
FluentIterator for the given Iterator. |
| 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. |
boolean |
hasNext() |
<T> FluentIterator<T> |
mapped(Function<E,T> function)
|
E |
next() |
equals, hashCode, removepublic Fluent(java.util.Iterator<E> delegate)
FluentIterator for the given Iterator.delegate - The Iterator to decorate.public FluentIterator<E> filtered(Filter<E> filter)
FluentIteratorFluentIterator that filters the elements of this FluentIterator with the given
filter.filtered in interface FluentIterator<E>filter - The Filter to filter the Iterator with.FluentIterator.public <T> FluentIterator<T> mapped(Function<E,T> function)
FluentIteratormapped in interface FluentIterator<E>T - The type of the mapped elements.function - The Function to map the original Iterator.FluentIterator.public boolean hasNext()
hasNext in interface java.util.Iterator<E>