public abstract class StateBase extends java.lang.Object implements State, Comparable, Serializable
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object object)
Compares a given object to this state object for the purpose of
collating.
|
boolean |
equals(java.lang.Object object)
Determines if an object is equal to this object.
|
int |
getCode()
Return the integer code that identifies this state.
|
java.lang.String |
getName()
Returns the descriptive name of the state.
|
int |
hashCode()
Returns the hash code for this state.
|
java.lang.String |
toString()
A string representation of this state.
|
public java.lang.String getName()
public int getCode()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- An object to test for equality.public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
object
- An object to compare this object to.The value 1 is returned if:
The value 0 (zero) is returned if:
The value -1 is returned if:
public int hashCode()
hashCode
in class java.lang.Object