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