|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSortDirection
public class SortDirection
The SortDirection class is an abstract representation of the direction of a sort. This class
is able to represent a sort that is either ASCENDING
, DESCENDING
,
or NONE
.
The SortDirection class is used to specify the direction of sorting on a Sort
JavaBean instance.
Field Summary | |
---|---|
static SortDirection |
ASCENDING
Direction representing ascending. |
static SortDirection |
DESCENDING
Direction representing descending. |
static int |
INT_ASCENDING
Int value representing an ascending sort. |
static int |
INT_DESCENDING
Int value representing a descending sort. |
static int |
INT_NONE
Int value representing no sort. |
static SortDirection |
NONE
Direction representing no sort direction |
Method Summary | |
---|---|
boolean |
equals(Object value)
Equals method. |
int |
getValue()
The direction's int value. |
int |
hashCode()
Hash code. |
String |
toString()
Convert this sort direction to a readable String. |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INT_ASCENDING
public static final int INT_DESCENDING
public static final int INT_NONE
public static final SortDirection ASCENDING
public static final SortDirection DESCENDING
public static final SortDirection NONE
Method Detail |
---|
public String toString()
toString
in class Object
public boolean equals(Object value)
equals
in class Object
value
- value to check
true
if this direction matches the value
; false
otherwise.public int hashCode()
hashCode
in class Object
public int getValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |