Methods Summary |
---|
public boolean | equals(java.lang.Object obj)Compares this enumerated to the specified enumerated.
The result is true if and only if the argument is not null
and is of the same class.
return ((obj != null) &&
(getClass() == obj.getClass()) &&
(value == ((Enumerated)obj).value)) ;
|
protected abstract java.util.Hashtable | getIntTable()Returns the hashtable of the integer forms.
getIntTable().get(x) returns the string form associated
to the integer x.
This method must be implemented by the derived class.
|
protected abstract java.util.Hashtable | getStringTable()Returns the hashtable of the string forms.
getStringTable().get(s) returns the integer form associated
to the string s.
This method must be implemented by the derived class.
|
public int | hashCode()Returns the hash code for this enumerated.
String hashString = getClass().getName() + String.valueOf(value) ;
return hashString.hashCode() ;
|
public int | intValue()Return the integer form of the enumerated.
return value ;
|
public java.lang.String | toString()Returns the string form of this enumerated.
return (String)getIntTable().get(new Integer(value)) ;
|
public java.util.Enumeration | valueIndexes()Returns an Java enumeration of the permitted integers.
return getIntTable().keys() ;
|
public java.util.Enumeration | valueStrings()Returns an Java enumeration of the permitted strings.
return getStringTable().keys() ;
|