Class Filter


  • public class Filter
    extends java.lang.Object
    A filter on a dataset as a set of rules
    • Constructor Detail

      • Filter

        public Filter​(FilterRule rule)
        Creates a filter with only one rule
        Parameters:
        rule -
      • Filter

        public Filter​(java.lang.String operation,
                      FilterRule... rules)
        Creates a new filter with the given rules and linking operation
        Parameters:
        rules - The rules list
        operation - The operation: 'and', 'or'
      • Filter

        public Filter​(java.lang.String operation,
                      com.badlogic.gdx.utils.Array<FilterRule> rules)
    • Method Detail

      • deepCopy

        public Filter deepCopy()
      • hasRules

        public boolean hasRules()
      • getRules

        public com.badlogic.gdx.utils.Array<FilterRule> getRules()
      • getOperation

        public gaiasky.util.filter.Filter.IOperation getOperation()
      • getOperationString

        public java.lang.String getOperationString()
      • setOperation

        public void setOperation​(java.lang.String op)
      • getOperationFromString

        public gaiasky.util.filter.Filter.IOperation getOperationFromString​(java.lang.String op)
      • addRule

        public void addRule​(FilterRule rule)
      • removeRule

        public boolean removeRule​(FilterRule rule)