Package gaiasky.util.filter
Class Filter
java.lang.Object
gaiasky.util.filter.Filter
A filter on a dataset as a set of rules
-
Constructor Summary
ConstructorDescriptionFilter
(FilterRule rule) Creates a filter with only one ruleFilter
(String operation, com.badlogic.gdx.utils.Array<FilterRule> rules) Filter
(String operation, FilterRule... rules) Creates a new filter with the given rules and linking operation -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRule
(FilterRule rule) deepCopy()
boolean
gaiasky.util.filter.Filter.IOperation
gaiasky.util.filter.Filter.IOperation
com.badlogic.gdx.utils.Array<FilterRule>
getRules()
boolean
hasRules()
boolean
removeRule
(FilterRule rule) void
setOperation
(String op)
-
Constructor Details
-
Filter
Creates a filter with only one rule- Parameters:
rule
-
-
Filter
Creates a new filter with the given rules and linking operation- Parameters:
rules
- The rules listoperation
- The operation: 'and', 'or'
-
Filter
-
-
Method Details
-
deepCopy
-
evaluate
-
hasRules
public boolean hasRules() -
getRules
-
getOperation
public gaiasky.util.filter.Filter.IOperation getOperation() -
getOperationString
-
setOperation
-
getOperationFromString
-
addRule
-
removeRule
-