|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.jinahya.util.fsm.State
public class State
State of a machine.
| Field Summary | |
|---|---|
static State |
INVALID
Constant for INVALID state. |
static State |
UNKNOWN
Default state for all newly created machines. |
| Constructor Summary | |
|---|---|
State(int code,
String name)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
getCode()
Returns code. |
String |
getName()
Returns name. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final State UNKNOWN
public static final State INVALID
| Constructor Detail |
|---|
public State(int code,
String name)
code - state value; must be a non-zero positivename - state name; must not be null| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic final int getCode()
public final String getName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||