Package io.goobi.viewer.model.search
Class SearchSortingOption
java.lang.Object
io.goobi.viewer.model.search.SearchSortingOption
- All Implemented Interfaces:
Serializable
- Author:
- florian
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructor for default sortingSearchSortingOption
(String field) SearchSortingOption
(String field, boolean ascending) Constructor for sort field -
Method Summary
Modifier and TypeMethodDescriptionboolean
Two SearchSortingOptions are equal if they either both have an emptygetField()
or if bothgetField()
andisAscending()
are equalgetField()
getLabel()
int
hashCode()
boolean
boolean
boolean
void
setDefaultOption
(boolean defaultOption) toString()
-
Constructor Details
-
SearchSortingOption
public SearchSortingOption()Constructor for default sorting -
SearchSortingOption
- Parameters:
field
-
-
SearchSortingOption
Constructor for sort field- Parameters:
field
-ascending
-
-
-
Method Details
-
getField
- Returns:
- the field
-
isAscending
public boolean isAscending()- Returns:
- the ascending
-
isDescending
public boolean isDescending() -
getLabel
- Returns:
- Appropriate label
-
getSortString
- Returns:
- Appropriate sorting string
-
hashCode
public int hashCode() -
equals
Two SearchSortingOptions are equal if they either both have an emptygetField()
or if bothgetField()
andisAscending()
are equal -
setDefaultOption
public void setDefaultOption(boolean defaultOption) -
isDefaultOption
public boolean isDefaultOption() -
toString
-