java.util.function.Supplier<T>public class SupplierWithContext<T> extends WrapperWithContext<T> implements java.util.function.Supplier<T>
Supplier that reactivates a context snapshot before
calling a delegate.| Modifier | Constructor | Description |
|---|---|---|
protected |
SupplierWithContext(java.util.function.Supplier<ContextSnapshot> snapshotSupplier,
java.util.function.Supplier<T> delegate,
java.util.function.Consumer<ContextSnapshot> snapshotConsumer) |
|
|
SupplierWithContext(ContextSnapshot snapshot,
java.util.function.Supplier<T> delegate) |
|
|
SupplierWithContext(ContextSnapshot snapshot,
java.util.function.Supplier<T> delegate,
java.util.function.Consumer<ContextSnapshot> snapshotConsumer) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.Optional<java.util.function.Consumer<ContextSnapshot>> |
consumer() |
|
T |
get() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdelegate, nonNullDelegateequals, hashCode, snapshot, toStringpublic SupplierWithContext(ContextSnapshot snapshot, java.util.function.Supplier<T> delegate)
public SupplierWithContext(ContextSnapshot snapshot, java.util.function.Supplier<T> delegate, java.util.function.Consumer<ContextSnapshot> snapshotConsumer)
protected SupplierWithContext(java.util.function.Supplier<ContextSnapshot> snapshotSupplier, java.util.function.Supplier<T> delegate, java.util.function.Consumer<ContextSnapshot> snapshotConsumer)
protected java.util.Optional<java.util.function.Consumer<ContextSnapshot>> consumer()
Copyright © 2016–2019 Talsma ICT. All rights reserved.