| 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, waitadaptFilter, composeFilters, composeFilters, toPredicatepublic 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 nullreasonConsumer - the consumer to call in case of exclusions; must not be null