Class FilterRule
java.lang.Object
gaiasky.util.filter.FilterRule
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionFilterRule(String comp, IAttribute attr, Object val) Creates a new filter with the given attribute, value and comparator function -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanevaluate(IParticleRecord bean) doublegetValue()voidsetAttribute(IAttribute attr) voidvoid
-
Constructor Details
-
FilterRule
Creates a new filter with the given attribute, value and comparator function- Parameters:
comp- The comparator function: '>', '≥', '<', '≤', '==', '!='attr- The attribute to compare.val- The value to compare to.
-
-
Method Details
-
evaluate
-
copy
-
getValue
-
getDoubleValue
public double getDoubleValue() -
setValue
-
getComparator
-
setComparator
-
getAttribute
-
setAttribute
-
getComparatorFromString
-