public class SortType extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static boolean |
ASC
Constant for ascending sort order.
|
static boolean |
DESC
Constant for descending sort order.
|
| Constructor and Description |
|---|
SortType(int aSortBy)
Creates a new SortType with given aSortBy method and ascending sort order.
|
SortType(int aSortBy,
boolean aSortOrder)
Creates a new SortType with given sortby method and order.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSortBy()
Returns the sortAfter parameter.
|
boolean |
getSortOrder()
Returns the sort order.
|
boolean |
isASC()
Returns true if the ascending sort order is selected.
|
boolean |
isDESC()
Returns true if the descending sort order is selected.
|
SortType |
reverse()
Returns a sorttype which is opposite to this sorttype (switched sort order).
|
String |
toString()
Returns the string representation of the object.
|
public static final boolean ASC
public static final boolean DESC
public SortType(int aSortBy,
boolean aSortOrder)
public SortType(int aSortBy)
public int getSortBy()
public boolean isASC()
public boolean isDESC()
public boolean getSortOrder()
public SortType reverse()
Copyright © 2010-2014 anotheria.net. All Rights Reserved.