Package gaiasky.util.filter
Class FilterRule
java.lang.Object
gaiasky.util.filter.FilterRule
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static interface
-
Constructor Summary
ConstructorDescriptionFilterRule
(String comp, IAttribute attr, Object val) Creates a new filter with the given attribute, value and comparator function -
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
evaluate
(IParticleRecord bean) double
getValue()
void
setAttribute
(IAttribute attr) void
void
-
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
-