Package org.teamapps.data.value.filter
Class NumericFilter
- java.lang.Object
-
- org.teamapps.data.value.filter.AbstractFilter
-
- org.teamapps.data.value.filter.NumericFilter
-
- All Implemented Interfaces:
Filter
public class NumericFilter extends AbstractFilter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNumericFilter.Comparator
-
Constructor Summary
Constructors Constructor Description NumericFilter(java.lang.String property, double value, NumericFilter.Comparator comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringexplain(int filterLevel)NumericFilter.ComparatorgetComparator()FilterTypegetType()java.lang.DoublegetValue()intgetValueAsInt()longgetValueAsLong()booleanmatches(DataRecord record, boolean treatNullAsDefaultValue)-
Methods inherited from class org.teamapps.data.value.filter.AbstractFilter
getProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teamapps.data.value.filter.Filter
and, asOrFilter, createLevelIndentString, explain, matches, or
-
-
-
-
Constructor Detail
-
NumericFilter
public NumericFilter(java.lang.String property, double value, NumericFilter.Comparator comparator)
-
-
Method Detail
-
getType
public FilterType getType()
-
matches
public boolean matches(DataRecord record, boolean treatNullAsDefaultValue)
-
explain
public java.lang.String explain(int filterLevel)
-
getValue
public java.lang.Double getValue()
-
getComparator
public NumericFilter.Comparator getComparator()
-
getValueAsInt
public int getValueAsInt()
-
getValueAsLong
public long getValueAsLong()
-
-