T - the type of the input argument to the filter@FunctionalInterface public interface Filter<T> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
default Filter |
and(Filter other)
Return a composed filter that represents a short-circuiting logical AND of this filter and another.
|
default LimitFilter<T> |
asLimitFilter(int cPageSize)
Return a limit filter based on this filter.
|
default <K> KeyAssociatedFilter<T> |
associatedWith(K key)
Return a key associated filter based on this filter and a specified key.
|
boolean |
evaluate(T o)
Apply the test to the input argument.
|
default <K> InKeySetFilter<T> |
forKeys(Set<K> setKeys)
Return a filter that will only be evaluated within specified key set.
|
default PartitionedFilter<T> |
forPartitions(PartitionSet partitions)
Return a partitioned filter for a specified partition set.
|
default Filter |
or(Filter other)
Return a composed predicate that represents a short-circuiting logical OR of this predicate and another.
|
default Filter |
xor(Filter other)
Return a composed predicate that represents a logical XOR of this predicate and another.
|
boolean evaluate(T o)
o - the input argument to evaluatetrue if the input argument matches the filter, otherwise falsedefault Filter and(Filter other)
false, then the other filter is not evaluated.
Any exceptions thrown during evaluation of either filter are relayed to the caller; if evaluation of this filter throws an exception, the other filter will not be evaluated.
other - a filter that will be logically-ANDed with this filterother filterdefault Filter or(Filter other)
true, then the other predicate is not evaluated.
Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
other - a predicate that will be logically-ORed with this predicateother predicatedefault Filter xor(Filter other)
Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.
other - a predicate that will be logically-XORed with this predicateother predicatedefault <K> KeyAssociatedFilter<T> associatedWith(K key)
key - associated keydefault PartitionedFilter<T> forPartitions(PartitionSet partitions)
partitions - the set of partitions the filter should run againstdefault <K> InKeySetFilter<T> forKeys(Set<K> setKeys)
setKeys - the set of keys to limit the filter evaluation todefault LimitFilter<T> asLimitFilter(int cPageSize)
cPageSize - the number of entries per page