Package gaiasky.util.filter
Class Filter
java.lang.Object
gaiasky.util.filter.Filter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
static class
static class
-
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
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
- The filter 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
-
setOperation
-
getOperationString
-
getOperationFromString
-
addRule
-
removeRule
-