public interface TristateFilter<T> extends Function<T,TristateFilter.Policy>
| Modifier and Type | Interface and Description |
|---|---|
static class |
TristateFilter.DefaultingPredicate<T> |
static class |
TristateFilter.MatchingPredicate<T> |
static class |
TristateFilter.Policy
The filter action determines what action is taken for a given
element that matches the predicate.
|
| Modifier and Type | Method and Description |
|---|---|
TristateFilter.Policy |
apply(T cycleResult) |
default Predicate<T> |
toDefaultingPredicate(TristateFilter.Policy defaultPolicy)
Create a predicate that will override any Ignore outcomes with the provided policy.
|
default Predicate<T> |
toMatchingPredicate(TristateFilter.Policy matchingPolicy)
Create a predicate that will return true if and only if the filter
outcome matches the provided policy.
|
TristateFilter.Policy apply(T cycleResult)
apply in interface Function<T,TristateFilter.Policy>default Predicate<T> toDefaultingPredicate(TristateFilter.Policy defaultPolicy)
defaultPolicy - The policy that will override non-actionable outcomesdefault Predicate<T> toMatchingPredicate(TristateFilter.Policy matchingPolicy)
matchingPolicy - The policy that will signal true in the predicate.Copyright © 2017. All rights reserved.