T - type of input enumerated elements.E - type of output enumerated elements.final class PipeOperator<T,E> extends Object implements Function<Enumerator<T>,Enumerator<E>>
Function that a PipeEnumerable applies in order
to constructs its Enumerator instances.Function,
PipeEnumerable,
Enumerator| Modifier and Type | Field and Description |
|---|---|
Lazy<Boolean> |
onceOnly
Lazy value indicating whether the operator can be applied
only once or not. |
| Constructor and Description |
|---|
PipeOperator(Function<Enumerator<T>,Enumerator<E>> operator,
Supplier<Boolean> onceOnly)
Creates a
PipeOperator instance with the given operator
and onceOnly flag. |
| Modifier and Type | Method and Description |
|---|---|
Enumerator<E> |
apply(Enumerator<T> enumerator) |
public PipeOperator(Function<Enumerator<T>,Enumerator<E>> operator, Supplier<Boolean> onceOnly)
PipeOperator instance with the given operator
and onceOnly flag.operator - value for the internal operator.onceOnly - value for onceOnly.public Enumerator<E> apply(Enumerator<T> enumerator)
apply in interface Function<Enumerator<T>,Enumerator<E>>Copyright © 2016. All rights reserved.