Class Filter
java.lang.Object
com.broadleafcommerce.search.api.domain.Filter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetName()The name of the property to filter on, e.g.The ranged values of this filter.The values of the filter.inthashCode()booleanDetermines whether or not this is a ranged query.voidThe name of the property to filter on, e.g.voidsetRanges(List<FilterRangeValue> ranges) The ranged values of this filter.voidThe 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
-