java.util.function.Predicate<T>public class PredicateWithContext<T> extends WrapperWithContext<T> implements java.util.function.Predicate<T>
Predicate that reactivates a context snapshot before
calling a delegate.| Modifier | Constructor | Description |
|---|---|---|
protected |
PredicateWithContext(java.util.function.Supplier<ContextSnapshot> supplier,
java.util.function.Predicate<T> delegate,
java.util.function.Consumer<ContextSnapshot> consumer) |
|
|
PredicateWithContext(ContextSnapshot snapshot,
java.util.function.Predicate<T> delegate) |
|
|
PredicateWithContext(ContextSnapshot snapshot,
java.util.function.Predicate<T> delegate,
java.util.function.Consumer<ContextSnapshot> consumer) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.function.Predicate<T> |
and(java.util.function.Predicate<? super T> other) |
|
protected java.util.Optional<java.util.function.Consumer<ContextSnapshot>> |
consumer() |
|
java.util.function.Predicate<T> |
or(java.util.function.Predicate<? super T> other) |
|
boolean |
test(T t) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdelegate, nonNullDelegateequals, hashCode, snapshot, toStringpublic PredicateWithContext(ContextSnapshot snapshot, java.util.function.Predicate<T> delegate)
public PredicateWithContext(ContextSnapshot snapshot, java.util.function.Predicate<T> delegate, java.util.function.Consumer<ContextSnapshot> consumer)
protected PredicateWithContext(java.util.function.Supplier<ContextSnapshot> supplier, java.util.function.Predicate<T> delegate, java.util.function.Consumer<ContextSnapshot> consumer)
public java.util.function.Predicate<T> and(java.util.function.Predicate<? super T> other)
and in interface java.util.function.Predicate<T>public java.util.function.Predicate<T> or(java.util.function.Predicate<? super T> other)
or in interface java.util.function.Predicate<T>protected java.util.Optional<java.util.function.Consumer<ContextSnapshot>> consumer()
Copyright © 2016–2019 Talsma ICT. All rights reserved.