java.util.function.BiFunction<T,T,T>, java.util.function.BinaryOperator<T>public class BinaryOperatorWithContext<T> extends BiFunctionWithContext<T,T,T> implements java.util.function.BinaryOperator<T>
BinaryOperator 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 |
BinaryOperatorWithContext(java.util.function.Supplier<ContextSnapshot> supplier,
java.util.function.BinaryOperator<T> delegate,
java.util.function.Consumer<ContextSnapshot> consumer) |
|
|
BinaryOperatorWithContext(ContextSnapshot snapshot,
java.util.function.BinaryOperator<T> delegate) |
|
|
BinaryOperatorWithContext(ContextSnapshot snapshot,
java.util.function.BinaryOperator<T> delegate,
java.util.function.Consumer<ContextSnapshot> consumer) |
| 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, applyclone, finalize, getClass, notify, notifyAll, wait, wait, waitdelegate, nonNullDelegateequals, hashCode, snapshot, toStringprotected final java.util.function.Consumer<ContextSnapshot> contextSnapshotConsumer
null.public BinaryOperatorWithContext(ContextSnapshot snapshot, java.util.function.BinaryOperator<T> delegate)
public BinaryOperatorWithContext(ContextSnapshot snapshot, java.util.function.BinaryOperator<T> delegate, java.util.function.Consumer<ContextSnapshot> consumer)
protected BinaryOperatorWithContext(java.util.function.Supplier<ContextSnapshot> supplier, java.util.function.BinaryOperator<T> delegate, java.util.function.Consumer<ContextSnapshot> consumer)
@Deprecated protected java.util.Optional<java.util.function.Consumer<ContextSnapshot>> consumer()
Copyright © 2016–2019 Talsma ICT. All rights reserved.