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

Constructor Index

 o Constant(int, String)

Method Index

 o equals(Object)
Tests for equality.
 o toInt()
Method to obtain the integer representation of the constant.
 o toString()
Method to obtain the string representation of the constant.

Constructors

 o Constant
 protected Constant(int num,
                    String name)

Methods

 o 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
 o toInt
 public int toInt()
Method to obtain the integer representation of the constant.

Returns:
Integer representation of constant
 o 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