/** * Constructor that takes a set of {@link Filter}s and an operator. * @param operator Operator to process filter set with. * @param filters Set of row filters. */ public FilterList(final Operator operator, final List<Filter> filters) { if (operator == Operator.MUST_PASS_ALL) { filterListBase = new FilterListWithAND(filters); } else if (operator == Operator.MUST_PASS_ONE) { filterListBase = new FilterListWithOR(filters); } else { throw new IllegalArgumentException("Invalid operator: " + operator); } this.operator = operator; }
/** * Constructor that takes a set of {@link Filter}s and an operator. * @param operator Operator to process filter set with. * @param filters Set of row filters. */ public FilterList(final Operator operator, final List<Filter> filters) { if (operator == Operator.MUST_PASS_ALL) { filterListBase = new FilterListWithAND(filters); } else if (operator == Operator.MUST_PASS_ONE) { filterListBase = new FilterListWithOR(filters); } else { throw new IllegalArgumentException("Invalid operator: " + operator); } this.operator = operator; }
/** * Constructor that takes a set of {@link Filter}s and an operator. * @param operator Operator to process filter set with. * @param filters Set of row filters. */ public FilterList(final Operator operator, final List<Filter> filters) { if (operator == Operator.MUST_PASS_ALL) { filterListBase = new FilterListWithAND(filters); } else if (operator == Operator.MUST_PASS_ONE) { filterListBase = new FilterListWithOR(filters); } else { throw new IllegalArgumentException("Invalid operator: " + operator); } this.operator = operator; }