java.util.function.Function<T,T>, java.util.function.UnaryOperator<T>public class UnaryOperatorWithContext<T> extends FunctionWithContext<T,T> implements java.util.function.UnaryOperator<T>
UnaryOperator that reactivates a context snapshot before
calling a delegate.| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.function.Consumer<ContextSnapshot> |
contextSnapshotConsumer |
The context snapshot consumer to provide a new snapshot to after the function is completed, may be
null. |
| Modifier | Constructor | Description |
|---|---|---|
protected |
UnaryOperatorWithContext(java.util.function.Supplier<ContextSnapshot> supplier,
java.util.function.UnaryOperator<T> delegate,
java.util.function.Consumer<ContextSnapshot> snapshotConsumer) |
|
|
UnaryOperatorWithContext(ContextSnapshot snapshot,
java.util.function.UnaryOperator<T> delegate) |
|
|
UnaryOperatorWithContext(ContextSnapshot snapshot,
java.util.function.UnaryOperator<T> delegate,
java.util.function.Consumer<ContextSnapshot> snapshotConsumer) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.Optional<java.util.function.Consumer<ContextSnapshot>> |
consumer() |
Deprecated.
The functional wrappers currently no longer use this method.
|
andThen, apply, composeclone, finalize, getClass, notify, notifyAll, wait, wait, waitdelegate, nonNullDelegateequals, hashCode, snapshot, toStringprotected final java.util.function.Consumer<ContextSnapshot> contextSnapshotConsumer
null.public UnaryOperatorWithContext(ContextSnapshot snapshot, java.util.function.UnaryOperator<T> delegate)
public UnaryOperatorWithContext(ContextSnapshot snapshot, java.util.function.UnaryOperator<T> delegate, java.util.function.Consumer<ContextSnapshot> snapshotConsumer)
protected UnaryOperatorWithContext(java.util.function.Supplier<ContextSnapshot> supplier, java.util.function.UnaryOperator<T> delegate, java.util.function.Consumer<ContextSnapshot> snapshotConsumer)
@Deprecated protected java.util.Optional<java.util.function.Consumer<ContextSnapshot>> consumer()
Copyright © 2016–2019 Talsma ICT. All rights reserved.