java.lang.Objectorg.jboss.util.CloneableObject
org.jboss.util.state.State
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
StateAdapter, AcceptableState
Each state is immutable and has a name and integer value. States are considered equivilent if the integer values equal.
Note that the second opperand is an annonymous class, changing its equivilence from a vanilla Type instance.
State objects also can contain an optional opaque object. This is provided for applications to make use of the state machine for managing data assocciated with the state.
< - tt>$Revision: 1.3 $< - a href="mailto:jason@planet57.com">Jason Dillon| Field Summary | ||
|---|---|---|
| public final int | value | The integer value of the state.
States with the same value are equal. |
| public final String | name | The human readable name of the state. |
| protected Object | opaque | The optional opaque user data for the state. |
| Constructor: |
|---|
|
|
| Method from org.jboss.util.state.State Summary: |
|---|
| equals, getName, getOpaque, getValue, hashCode, setOpaque, toIdentityString, toString |
| Methods from org.jboss.util.CloneableObject: |
|---|
| clone |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.jboss.util.state.State Detail: |
|---|
States are considered equal if the integer values of the State objects are equivilent. |
|
|
|
|
|
This is the same value returned by Object#toString() . |
|