public interface Filter<T> extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
Filter.AndFilter<T>
A simple combinatorial filter that requires all inner filters to accept an element to be fulfilled.
|
static class |
Filter.CombinedFilter<T>
Abstract definition for combinatorial filters.
|
static class |
Filter.EqualFilter<T>
Simple equality filter implementation.
|
static class |
Filter.ImpliesFilter<T>
A filter implementation accepting elements based on a logical consequence concept, i.e., it accepts an element, if the implication accepting the element is a consequence of the condition accepting it.
|
static class |
Filter.NotFilter<T>
A simple filter negating the single inner one.
|
static class |
Filter.OrFilter<T>
A simple combinatorial filter that requires one of the inner filters to accept an element to be fulfilled.
|
static interface |
Filter.TypedFilter<T>
Extension to a filter definition that provides the element in question as type safe object, if the filter accepted it.
|
static class |
Filter.Util
Usage example import static de.espirit.common.util.Filter.Util.and; import static de.espirit.common.util.Filter.Util.doFilter; import static de.espirit.common.util.Filter.Util.not; import static de.espirit.common.util.Filter.Util.or; ...
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(T element)
Determines, whether the given element should be accepted by this filter.
|
boolean accept(T element)
element
- The element to test.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210