Class SortResponse
- java.lang.Object
-
- com.broadleafcommerce.search.api.domain.SortResponse
-
- All Implemented Interfaces:
Serializable
public class SortResponse extends Object implements Serializable
Information on the active sorting and available sorts for aSearchResponse
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SortResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
SortOption
getSortOption()
The Sort Option information for this sort.int
hashCode()
boolean
isActive()
Whether or not this sort is active.boolean
isDescending()
Whether the sort should be descending.void
setActive(boolean active)
Whether or not this sort is active.void
setDescending(boolean descending)
Whether the sort should be descending.void
setSortOption(SortOption sortOption)
The Sort Option information for this sort.String
toString()
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSortOption
public SortOption getSortOption()
The Sort Option information for this sort.- Returns:
- Sort Option information for this sort.
-
isActive
public boolean isActive()
Whether or not this sort is active.- Returns:
- whether or not this sort is active
-
isDescending
public boolean isDescending()
Whether the sort should be descending. Sort will be ascending by default.Only included for the active sort.
- Returns:
- whether the sort is descending
-
setSortOption
public void setSortOption(SortOption sortOption)
The Sort Option information for this sort.- Parameters:
sortOption
- Sort Option information for this sort
-
setActive
public void setActive(boolean active)
Whether or not this sort is active.- Parameters:
active
- whether or not this sort is active
-
setDescending
public void setDescending(boolean descending)
Whether the sort should be descending. Sort will be ascending by default.Only included for the active sort.
- Parameters:
descending
- whether the sort is descending
-
canEqual
protected boolean canEqual(Object other)
-
-