public class SortOption
extends java.lang.Object
SubscriptionManager
methods to query a user's subscriptions.SubscriptionManager
Modifier and Type | Class and Description |
---|---|
static class |
SortOption.SortBy
Enum that defines the supported fields for sorting.
|
Constructor and Description |
---|
SortOption()
Constructor to create an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
SortOption.SortBy |
getField()
Returns the sort field of this object.
|
boolean |
isAscending()
Returns whether the sort order is ascending or descending.
|
void |
setAscending(boolean mAscending)
Sets the sorting order for this object to be used with the sort by field.
|
void |
setField(SortOption.SortBy sortBy)
Sets the sort field of this object to one
of the supported field as defined by
SortBy |
public void setField(SortOption.SortBy sortBy)
SortBy
-
- the sort by field to be set for this object.public SortOption.SortBy getField()
public void setAscending(boolean mAscending)
-
- whether the order of sort field in setField
is ascending
or descending. If true, ascending, otherwise descending.public boolean isAscending()