AI-generated Key Takeaways
-
SortOrder.Builder is a public static class that can be used to build SortOrder objects.
-
It has a public constructor and several public methods, including
addSortAscending,addSortDescending, andbuild. -
The
addSortAscendingandaddSortDescendingmethods are used to specify the fields and order for sorting query results. -
The
buildmethod is used to create the final SortOrder object.
Public Constructor Summary
Public Method Summary
| SortOrder.Builder | addSortAscending
( SortableMetadataField
sortField)
Adds the
SortableMetadataField
to be used to sort the query results in
ascending order of the values of the sortField. |
| SortOrder.Builder | addSortDescending
( SortableMetadataField
sortField)
Adds the
SortableMetadataField
to be used to sort the query results in
descending order of the values of the sortField. |
| SortOrder | build
()
|
Inherited Method Summary
Public Constructors
public SortOrder.Builder ()
Public Methods
public SortOrder.Builder addSortAscending ( SortableMetadataField sortField)
Adds the SortableMetadataField
to be used to sort the query results in ascending order of the values of the sortField.
Query results are sorted in the same order the fields are added.
Parameters
SortableField
for the list of fields that can be used to sort query resultspublic SortOrder.Builder addSortDescending ( SortableMetadataField sortField)
Adds the SortableMetadataField
to be used to sort the query results in descending order of the values of the
sortField. Query results are sorted in the same order the fields are added.
Parameters
SortableField
for the list of fields that can be used to sort query results
