T
- the type to cast to before the filteringpublic abstract static class ExpressionLanguage.Filter<T> extends Object
Constructor and Description |
---|
ExpressionLanguage.Filter(Class<T> clazz)
Creates a filter which looks for and cases data objects of the
given class.
|
ExpressionLanguage.Filter(Class<T> clazz,
boolean filterUnmatched)
Creates a filter which looks for and cases data objects of the
given class.
|
Modifier and Type | Method and Description |
---|---|
ExpressionLanguage.Filter<?> |
and(ExpressionLanguage.Filter<?> filter)
Returns a new filter that is the logical AND of this and the given
one.
|
abstract boolean |
filter(T previousValue,
T currentValue)
Determines whether the new value should be filtered or not.
|
ExpressionLanguage.Filter<?> |
or(ExpressionLanguage.Filter<?> filter)
Returns a new filter that is the logical OR of this and the given
one.
|
public ExpressionLanguage.Filter(Class<T> clazz)
clazz
- the argument type of the filterpublic ExpressionLanguage.Filter(Class<T> clazz, boolean filterUnmatched)
clazz
- the argument type of the filterfilterUnmatched
- whether objects that don't match the class
should be filtered or notpublic abstract boolean filter(T previousValue, T currentValue)
previousValue
- the previous data updatecurrentValue
- the current data updatepublic ExpressionLanguage.Filter<?> and(ExpressionLanguage.Filter<?> filter)
filter
- another filterpublic ExpressionLanguage.Filter<?> or(ExpressionLanguage.Filter<?> filter)
filter
- another filterCopyright © 2010–2015. All rights reserved.