Package net.solarnetwork.domain
Interface SortDescriptor
- All Known Implementing Classes:
MutableSortDescriptor,SimpleSortDescriptor
public interface SortDescriptor
An API for specifying a collection ordering.
- Version:
- 1.0
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptionGet the name of the value to sort by.booleanReturn true if the sort should be in descending order, otherwise the short should be in ascending order.
-
Method Details
-
getSortKey
String getSortKey()Get the name of the value to sort by.How this value is interpreted is implementation dependent.
- Returns:
- the sort key
-
isDescending
boolean isDescending()Return true if the sort should be in descending order, otherwise the short should be in ascending order.- Returns:
- true if the sort should be in descending order
-