Constructor and Description |
---|
ExclusionReasonConsumingFilter(Filter<T> filter,
BiConsumer<T,Optional<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
adaptFilter, composeFilters, composeFilters, toPredicate
public ExclusionReasonConsumingFilter(Filter<T> filter, BiConsumer<T,Optional<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