|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.state.StateFlag
An abstract convenience class for immutable state flags in a state value. State flags can be used to indicate state, and to specify it. State flag identity (equals(), hashCode()) defaults to that of Object, which uses "reference" equivalency. The flag name is not a factor in the flag's identity.
Constructor Summary | |
StateFlag()
Constructs an instance, with a default name. |
|
StateFlag(java.lang.String name)
Constructs an instance, with the specified name. |
Method Summary | |
java.lang.String |
getName()
Returns the name of this flag. |
java.lang.String |
toString()
Returns the name of this flag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StateFlag()
public StateFlag(java.lang.String name)
name
- Name of this state flag. If null, defaults to "StateFlag".Method Detail |
public final java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |