All Packages Class Hierarchy This Package Previous Next Index
Class org.webmacro.util.Constant
java.lang.Object
|
+----org.webmacro.util.Constant
- public final class Constant
- extends Object
This class allows you to use an object to represent a constant. The
default implementation allows the object to have both a String
and an integer representation. All subclasses must have both
String and integer representations as well--the integer value
is used to order the constants.
Constants are immutable, and usually declared final.
-
Constant(String, int)
-
-
getName()
- Same as toString()
-
getOrder()
- Return the integer (order) value of this constant
-
toString()
- Return the declared String name for this constant
Constant
public Constant(String name,
int ord)
toString
public final String toString()
- Return the declared String name for this constant
- Overrides:
- toString in class Object
getName
public final String getName()
- Same as toString()
getOrder
public final int getOrder()
- Return the integer (order) value of this constant
All Packages Class Hierarchy This Package Previous Next Index