|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.epics.pvmanager.ExpressionLanguage.Filter<T>
T - the type to cast to before the filteringpublic abstract static class ExpressionLanguage.Filter<T>
Filters a data stream, removing updates that match the given function. Looks for objects of a specific type, and filters based on previous and current value.
| Constructor Summary | |
|---|---|
ExpressionLanguage.Filter(java.lang.Class<T> clazz)
Creates a filter which looks for and cases data objects of the given class. |
|
ExpressionLanguage.Filter(java.lang.Class<T> clazz,
boolean filterUnmatched)
Creates a filter which looks for and cases data objects of the given class. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionLanguage.Filter(java.lang.Class<T> clazz)
clazz - the argument type of the filter
public ExpressionLanguage.Filter(java.lang.Class<T> clazz,
boolean filterUnmatched)
clazz - the argument type of the filterfilterUnmatched - whether objects that don't match the class
should be filtered or not| Method Detail |
|---|
public abstract boolean filter(T previousValue,
T currentValue)
previousValue - the previous data updatecurrentValue - the current data update
public ExpressionLanguage.Filter<?> and(ExpressionLanguage.Filter<?> filter)
filter - another filter
public ExpressionLanguage.Filter<?> or(ExpressionLanguage.Filter<?> filter)
filter - another filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||