Class AttributeFilterParameter<T>

java.lang.Object
com.loop54.model.request.parameters.filters.FilterParameter
com.loop54.model.request.parameters.filters.AttributeFilterParameter<T>
Type Parameters:
T - The type of the entity that we want to filter.

public class AttributeFilterParameter<T> extends FilterParameter
Used for filtering entities that have a certain attribute value.
  • Field Details

  • Constructor Details

    • AttributeFilterParameter

      public AttributeFilterParameter(FilterParameterType type, T value)
      Parameters:
      type - Type of the filter. If you want to use FilterParameterType.ATTRIBUTE it's easier to use the AttributeFilterParameter(String, Object) constructor.
      value - The value to compare.
    • AttributeFilterParameter

      public AttributeFilterParameter(String attributeName, T value)
      Constructor. Use this if you want to use the filter parameter to filter on an attribute. Will set the type of the filter to FilterParameterType.ATTRIBUTE.
      Parameters:
      attributeName - Name of the attribute to filter on. For instance "category". Note that the names of the attributes vary depending on setup.
      value - The value to compare. For instance a category name if filtering on a category attribute.