All Packages Class Hierarchy This Package Previous Next Index
Class semper.util.constant.Constant
java.lang.Object
|
+----semper.util.constant.Constant
- public abstract class Constant
- extends Object
- implements Serializable
-
Constant(int, String)
-
-
equals(Object)
- Tests for equality.
-
toInt()
- Method to obtain the integer representation of the constant.
-
toString()
- Method to obtain the string representation of the constant.
Constant
protected Constant(int num,
String name)
equals
public boolean equals(Object t)
- Tests for equality. Overridden because the class contains reference
to another object (namely 'name').
- Overrides:
- equals in class Object
toInt
public int toInt()
- Method to obtain the integer representation of the constant.
- Returns:
- Integer representation of constant
toString
public String toString()
- Method to obtain the string representation of the constant.
- Returns:
- String representation of constant
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index