Class DataAndFilter


public class DataAndFilter extends DataFilter<Collection<DataFilter>>
Creates a nested collection of operators that need to be checked in the DataQuery via an AND join operation. If wanting to join via an OR operation instead a DataOrFilter can be used. These filters can be nested within each-other to create complex DataFilter operations

Note: For examples on how to use these filters, please refer to the documentation on the DataQuery class.

Since:
0.15.2
See Also:
  • Field Details

    • AND_FIELD_NAME

      public static String AND_FIELD_NAME
    • AND_OPERATOR

      public static String AND_OPERATOR
  • Constructor Details

    • DataAndFilter

      public DataAndFilter()
    • DataAndFilter

      public DataAndFilter(Collection<DataFilter> dataFilters)
    • DataAndFilter

      public DataAndFilter(DataFilter... dataFilters)
  • Method Details

    • withFilter

      public DataAndFilter withFilter(DataFilter dataFilter)
      A Chainable operation to append a sub filter into the AND Operation
      Parameters:
      dataFilter - the nested Filter to add
      Returns:
      a reference to the current DataAndFilter
    • withFilters

      public DataAndFilter withFilters(Collection<DataFilter> dataFilters)
      A Chainable operation to append sub filters into the AND Operation
      Parameters:
      dataFilters - a collection of nested Filter to add
      Returns:
      a reference to the current DataAndFilter
    • withFilters

      public DataAndFilter withFilters(DataFilter... dataFilter)