Class Filter
java.lang.Object
com.broadleafcommerce.search.api.domain.Filter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getName()
The name of the property to filter on, e.g.The ranged values of this filter.The values of the filter.int
hashCode()
boolean
Determines whether or not this is a ranged query.void
The name of the property to filter on, e.g.void
setRanges
(List<FilterRangeValue> ranges) The ranged values of this filter.void
The values of the filter.toString()
-
Constructor Details
-
Filter
public Filter()
-
-
Method Details
-
isRangedFilter
public boolean isRangedFilter()Determines whether or not this is a ranged query.- Returns:
- true if a ranged filter, else false.
-
getName
The name of the property to filter on, e.g. "color","price", etc.- Returns:
- name of the property to filter on
-
getValues
The values of the filter. For example, if name is "color", this could be "red","black","blue"- Returns:
- values of the filter
-
getRanges
The ranged values of this filter. This will contain pairs of minimum and maximum values to create ranges to filter on. Cannot be used in combination with filter values.- Returns:
- ranges of the filter
-
setName
The name of the property to filter on, e.g. "color","price", etc.- Parameters:
name
- name of the property to filter on
-
setValues
The values of the filter. For example, if name is "color", this could be "red","black","blue"- Parameters:
values
- values of the filter
-
setRanges
The ranged values of this filter. This will contain pairs of minimum and maximum values to create ranges to filter on. Cannot be used in combination with filter values.- Parameters:
ranges
- ranges of the filter
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-