Class FilterItems


  • public final class FilterItems
    extends Object
    Will contain the filter name and values to operate on.
    • Constructor Detail

      • FilterItems

        public FilterItems()
    • Method Detail

      • field

        public String field()
        Get the field property: The name of the field we would like to filter.
        Returns:
        the field value.
      • withField

        public FilterItems withField​(String field)
        Set the field property: The name of the field we would like to filter.
        Parameters:
        field - the field value to set.
        Returns:
        the FilterItems object itself.
      • values

        public List<String> values()
        Get the values property: List of values to filter the current field by.
        Returns:
        the values value.
      • withValues

        public FilterItems withValues​(List<String> values)
        Set the values property: List of values to filter the current field by.
        Parameters:
        values - the values value to set.
        Returns:
        the FilterItems object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.