|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthkontrol.core.ImmutableState
public class ImmutableState
This small wrapper class provides immutable access to a State
object. Its main use is to give actions a method to know the state in which
they are executed without being able to modify it.
| Constructor Summary | |
|---|---|
ImmutableState(State state)
The only constructor expects a State object that can
be accessed via ImmutableState. |
|
| Method Summary | |
|---|---|
java.lang.String |
getProperty(java.lang.String key)
returns the current value of a given property or null if
no such property was set. |
java.lang.String |
toString()
returns the represented state as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutableState(State state)
State object that can
be accessed via ImmutableState.
state - | Method Detail |
|---|
public java.lang.String getProperty(java.lang.String key)
null if
no such property was set.
key - the key of the requested property
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 | |||||||||