Class FilterableProperty


  • public final class FilterableProperty
    extends Object
    Different types of filters supported and its values.
    • Constructor Detail

      • FilterableProperty

        public FilterableProperty()
    • Method Detail

      • type

        public SupportedFilterTypes type()
        Get the type property: Type of product filter.
        Returns:
        the type value.
      • withType

        public FilterableProperty withType​(SupportedFilterTypes type)
        Set the type property: Type of product filter.
        Parameters:
        type - the type value to set.
        Returns:
        the FilterableProperty object itself.
      • supportedValues

        public List<String> supportedValues()
        Get the supportedValues property: Values to be filtered.
        Returns:
        the supportedValues value.
      • withSupportedValues

        public FilterableProperty withSupportedValues​(List<String> supportedValues)
        Set the supportedValues property: Values to be filtered.
        Parameters:
        supportedValues - the supportedValues value to set.
        Returns:
        the FilterableProperty object itself.
      • validate

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