com.googlecode.jinahya.util.fsm
Class State
java.lang.Object
com.googlecode.jinahya.util.fsm.State
- All Implemented Interfaces:
- Serializable
public class State
- extends Object
- implements Serializable
- Author:
- Jin Kwon
- See Also:
- Serialized Form
|
Constructor Summary |
State(int code,
String name)
Creates a new instance. |
UNKNOWN
public static final State UNKNOWN
INVALID
public static final State INVALID
- Constant for INVALID state.
State
public State(int code,
String name)
- Creates a new instance.
- Parameters:
code - state value; must be a non-zero positivename - state name; must not be null
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
getCode
public final int getCode()
getName
public final String getName()
Copyright © 2011. All Rights Reserved.