Class Sort
java.lang.Object
com.microsoft.store.partnercenter.models.query.sort.Sort
public class Sort extends Object
Specifies sort field and direction.
-
Constructor Summary
Constructors Constructor Description Sort(String sortField, SortDirection sortDirection)Initializes a new instance of the Sort class. -
Method Summary
Modifier and Type Method Description SortDirectiongetSortDirection()Sets the sort direction.StringgetSortField()Gets the sort field.voidsetSortDirection(SortDirection value)Sets the sort direction.voidsetSortField(String value)Gets the sort field.StringtoString()Prints the sort details.
-
Constructor Details
-
Sort
Initializes a new instance of the Sort class.- Parameters:
sortField- The sort field.sortDirection- The sort direction.
-
-
Method Details
-
getSortField
Gets the sort field.- Returns:
- The sort field.
-
setSortField
Gets the sort field.- Parameters:
value- The sort field.
-
getSortDirection
Sets the sort direction.- Returns:
- The sort direction.
-
setSortDirection
Sets the sort direction.- Parameters:
value- The sort direction.
-
toString
Prints the sort details.
-