Package com.emc.documentum.rest.sort
Class SortSpec
java.lang.Object
com.emc.documentum.rest.sort.SortSpec
The sort specification for object attributes.
A sort consists of multiple single sort specifications, separated by comma (',');
each sort specification consists of an attribute to be sorted and its sort order, separated by ' ';
sort order can be either "DESC" or "ASC", case insensitive;
sort order is optional, if not specified, the default sort order is "ASC";
optionally it can be specified with non-repeating attributes;
example: sort=r_modify_date desc,object_id asc,title.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
DEFAULT
The default sort specification without any specified attributes. When the default sort specification is used, the sort order is determined by the system.
-
-
Constructor Details
-
SortSpec
public SortSpec()Constructor without sort specification. -
SortSpec
Constructor with a specified sort specification.- Parameters:
sortBy
- the sort expression
-
-
Method Details
-
get
Return a list of SortOrder according to the sort specification- Returns:
- a list of
SortOrder
-
toString
Return the original sort specification. -
hashCode
public int hashCode() -
equals
-