Constructor and Description |
---|
ExclusionReasonConsumingFilter(Filter<T> filter,
java.util.function.BiConsumer<T,java.util.Optional<java.lang.String>> reasonConsumer)
Create a new
ExclusionReasonConsumingFilter using the supplied
filter and reasonConsumer . |
Modifier and Type | Method and Description |
---|---|
FilterResult |
apply(T object)
Apply this filter to the supplied object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
composeFilters, composeFilters, toPredicate
public ExclusionReasonConsumingFilter(Filter<T> filter, java.util.function.BiConsumer<T,java.util.Optional<java.lang.String>> reasonConsumer)
ExclusionReasonConsumingFilter
using the supplied
filter
and reasonConsumer
.filter
- the filter to decorate; must not be null
reasonConsumer
- the consumer to call in case of exclusions; must not be null