Sort Class

  • java.lang.Object
    • com.microsoft.store.partnercenter.models.query.sort.Sort

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
SortDirection 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

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

Sort

public Sort(String sortField, SortDirection sortDirection)

Initializes a new instance of the Sort class.

Parameters:

sortField - The sort field.
sortDirection - The sort direction.

Method Details

getSortDirection

public SortDirection getSortDirection()

Sets the sort direction.

Returns:

The sort direction.

getSortField

public String getSortField()

Gets the sort field.

Returns:

The sort field.

setSortDirection

public void setSortDirection(SortDirection value)

Sets the sort direction.

Parameters:

value - The sort direction.

setSortField

public void setSortField(String value)

Gets the sort field.

Parameters:

value - The sort field.

toString

public String toString()

Prints the sort details.

Overrides:

Sort.toString()

Returns:

The sort details.

Applies to