Package org.apache.juneau.objecttools
Class SortArgs
java.lang.Object
org.apache.juneau.objecttools.SortArgs
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SortArgs
Constructor.- Parameters:
sortArgs
- Comma-delimited list of sort arguments.
Values are of the following forms:"column" - Sort column ascending."column+" - Sort column ascending."column-" - Sort column descending.
-
SortArgs
Constructor.- Parameters:
sortArgs
- Sort arguments.
Values are of the following forms:"column" - Sort column ascending."column+" - Sort column ascending."column-" - Sort column descending.
-
-
Method Details
-
create
Static creator.- Parameters:
args
- Comma-delimited list of sort arguments.
Values are of the following forms:"column" - Sort column ascending."column+" - Sort column ascending."column-" - Sort column descending.
- Returns:
- A new
SortArgs
object.
-
create
Static creator.- Parameters:
args
- Sort arguments.
Values are of the following forms:"column" - Sort column ascending."column+" - Sort column ascending."column-" - Sort column descending.
- Returns:
- A new
SortArgs
object.
-
getSort
The sort columns.The sort columns are key/value pairs consisting of column-names and direction flags (
false = ascending,true = descending).- Returns:
- An unmodifiable ordered map of sort columns and directions.
-