public class SortOption extends Object
| Constructor and Description |
|---|
SortOption() |
SortOption(String stringRepresentation)
Constructor that supports a String representation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that)
Equality check.
|
String |
getLabel()
The display name for this sorting option (optional).
|
List<SortSpec> |
getSorts()
The list of sort specifications.
|
int |
hashCode() |
boolean |
isDefault()
Returns whether or not this sort was applied as
a default sort, or as a user-requested sort
Used to control the application of Boost / Bury
|
void |
setDefault(boolean isDefault) |
void |
setLabel(String label) |
void |
setSorts(List<SortSpec> sorts) |
String |
toString() |
public SortOption()
public SortOption(String stringRepresentation)
stringRepresentation - cannot be nullpublic String getLabel()
public void setLabel(String label)
public void setSorts(List<SortSpec> sorts)
sorts - -- if this is null, will set
an empty list for the value of sortspublic boolean isDefault()
public void setDefault(boolean isDefault)
public boolean equals(Object that)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.