final class Reversible extends Object
Enumerable.Enumerable| Constructor and Description |
|---|
Reversible() |
| Modifier and Type | Method and Description |
|---|---|
static <E> Enumerator<E> |
distinct(Enumerator<E> source,
boolean reversed)
Applies a
Enumerator.distinct() operation upon source,
in reverse if necessary. |
(package private) static <E,R> Enumerator<R> |
map(Enumerator<E> source,
BiFunction<? super E,? super Long,? extends R> mapper,
boolean reversed)
Applies a
Enumerator.map(BiFunction) operation
upon source, in reverse if necessary. |
static <E> Enumerator<E> |
peek(Enumerator<E> source,
Consumer<? super E> action,
boolean reversed)
Applies a
Enumerator.peek(Consumer) operation
upon source, in reverse if necessary. |
public static <E> Enumerator<E> distinct(Enumerator<E> source, boolean reversed)
Enumerator.distinct() operation upon source,
in reverse if necessary.E - type of enumerated elements.source - Enumerator to apply the operation on.reversed - true if the operation is applied in reverse,
false otherwise.Enumerator.static <E,R> Enumerator<R> map(Enumerator<E> source, BiFunction<? super E,? super Long,? extends R> mapper, boolean reversed)
Enumerator.map(BiFunction) operation
upon source, in reverse if necessary.E - type of unmapped enumerated elements.R - type of mapped enumerated elements.source - Enumerator to apply the operation on.mapper - BiFunction to apply.reversed - true if the operation is applied in reverse,
false otherwise.Enumerator.public static <E> Enumerator<E> peek(Enumerator<E> source, Consumer<? super E> action, boolean reversed)
Enumerator.peek(Consumer) operation
upon source, in reverse if necessary.E - type of enumerated elements.source - Enumerator to apply the operation on.action - Consumer to apply.reversed - true if the operation is applied in reverse,
false otherwise.Enumerator.Copyright © 2016. All rights reserved.