|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.properties.SortOrderEnum
public final class SortOrderEnum
Enumeration for sort order.
| Field Summary | |
|---|---|
static SortOrderEnum |
ASCENDING
Sorted in ascending order (2, "ascending"). |
static SortOrderEnum |
DESCENDING
Sorted in descending order (1, "descending"). |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Only a single instance of a specific enumeration can be created, so we can check using ==. |
static SortOrderEnum |
fromCode(int key)
lookup a SortOrderEnum by key. |
static SortOrderEnum |
fromCode(java.lang.Integer key)
lookup a SortOrderEnum by an Integer key. |
static SortOrderEnum |
fromIntegerCode(java.lang.Integer key)
Deprecated. use fromCode(Integer) |
static SortOrderEnum |
fromName(java.lang.String code)
Lookup a SortOrderEnum by a String key. |
int |
getCode()
returns the int code. |
java.lang.String |
getName()
returns the description. |
int |
hashCode()
|
static java.util.Iterator |
iterator()
returns an iterator on all the enumerated instaces. |
java.lang.String |
toString()
returns the enumeration description. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SortOrderEnum DESCENDING
public static final SortOrderEnum ASCENDING
| Method Detail |
|---|
public int getCode()
public java.lang.String getName()
public static SortOrderEnum fromCode(int key)
key - int code
public static SortOrderEnum fromCode(java.lang.Integer key)
key - Integer code - null safe: a null key returns a null Enum
public static SortOrderEnum fromIntegerCode(java.lang.Integer key)
key - Integer code - null safe: a null key returns a null Enum
public static SortOrderEnum fromName(java.lang.String code)
code - String code - null safe: a null key returns a null Enum
public static java.util.Iterator iterator()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to compare to
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||