Class SortOption
- java.lang.Object
-
- com.broadleafcommerce.search.api.domain.SortOption
-
- All Implemented Interfaces:
Serializable
public class SortOption extends Object implements Serializable
A sorting option for a particular field. This sort can be performed in either ascending or descending order.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description SortOption()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)IntegergetDisplayOrder()The display order of this sort optionFieldDefinitiongetField()The field to be sorted onStringgetLabel()The label of this search optionStringgetName()Name to use to identify the sort option.inthashCode()voidsetDisplayOrder(Integer displayOrder)The display order of this sort optionvoidsetField(FieldDefinition field)The field to be sorted onvoidsetLabel(String label)The label of this search optionvoidsetName(String name)Name to use to identify the sort option.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLabel
public String getLabel()
The label of this search option- Returns:
- label of this search option
-
getName
public String getName()
Name to use to identify the sort option. Typically, this should correspond to aFieldDefinition.getAbbreviation().- Returns:
- Name to use to identify the sort option.
-
getField
public FieldDefinition getField()
The field to be sorted on- Returns:
- field to be sorted on
-
getDisplayOrder
public Integer getDisplayOrder()
The display order of this sort option- Returns:
- the order to display this sort option
-
setLabel
public void setLabel(String label)
The label of this search option- Parameters:
label- label of this search option
-
setName
public void setName(String name)
Name to use to identify the sort option. Typically, this should correspond to aFieldDefinition.getAbbreviation().- Parameters:
name- Name to use to identify the sort option.
-
setField
public void setField(FieldDefinition field)
The field to be sorted on- Parameters:
field- field to be sorted on
-
setDisplayOrder
public void setDisplayOrder(Integer displayOrder)
The display order of this sort option- Parameters:
displayOrder- the order to display this sort option
-
canEqual
protected boolean canEqual(Object other)
-
-