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