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.


Constructor Index

 o Constant(String, int)

Method Index

 o getName()
Same as toString()
 o getOrder()
Return the integer (order) value of this constant
 o toString()
Return the declared String name for this constant

Constructors

 o Constant
 public Constant(String name,
                 int ord)

Methods

 o toString
 public final String toString()
Return the declared String name for this constant

Overrides:
toString in class Object
 o getName
 public final String getName()
Same as toString()

 o getOrder
 public final int getOrder()
Return the integer (order) value of this constant


All Packages  Class Hierarchy  This Package  Previous  Next  Index