|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jcreme.enumerations.Enumeration
org.jcreme.enumerations.SortOrder
This class represents a SortOrder (Ascending, Descending, None). The order can be used to multiply with the result of a comparison to get the actual sort result. This class can be used as a sample for Enumeration sub classes.
| Field Summary | |
static SortOrder |
ASCENDING
The 'ASCENDING' enumeration value. |
static SortOrder |
DESCENDING
The 'DESCENDING' enumeration value. |
static int |
I_ASCENDING
The value for the 'ASCENDING' enumeration value. |
static int |
I_DESCENDING
The value for the 'DESCENDING' enumeration value. |
static int |
I_NONE
The value for the 'NONE' enumeration value. |
static SortOrder |
NONE
The 'NONE' enumeration value. |
static java.lang.String |
S_ASCENDING
The name for the 'ASCENDING' enumeration value. |
static java.lang.String |
S_DESCENDING
The name for the 'DESCENDING' enumeration value. |
static java.lang.String |
S_NONE
The name for the 'NONE' enumeration value. |
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
protected |
SortOrder(java.lang.String name,
int order)
Creates new SortOrder. |
| Method Summary | |
static SortOrder |
get(java.lang.String name)
This method retrieves a SortOrder instance from its name. |
protected java.util.Hashtable |
getFromName()
This method is for internal use only. |
int |
getOrder()
This method enables access to the order member. |
static SortOrder[] |
getSortOrders()
This methods gives the instances of this class. |
static Enumeration[] |
getValues()
This method enables to retrieve all the possible values of an Enumeration class. |
| Methods inherited from class org.jcreme.enumerations.Enumeration |
compareTo, getName, readResolve, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
static final long serialVersionUID
public static final java.lang.String S_NONE
public static final int I_NONE
public static final SortOrder NONE
public static final java.lang.String S_ASCENDING
public static final int I_ASCENDING
public static final SortOrder ASCENDING
public static final java.lang.String S_DESCENDING
public static final int I_DESCENDING
public static final SortOrder DESCENDING
| Constructor Detail |
protected SortOrder(java.lang.String name,
int order)
throws java.security.InvalidParameterException
name - the name of this enumerated value. It cannot be null.order - the order value (-1,0 or 1)
java.security.InvalidParameterException - if name is null,Enumeration.Enumeration(String)| Method Detail |
public int getOrder()
protected java.util.Hashtable getFromName()
getFromName in class Enumerationpublic static SortOrder get(java.lang.String name)
name - the name of the SortOrder instance.
public static SortOrder[] getSortOrders()
public static Enumeration[] getValues()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||