public class DefaultExtendedState extends java.lang.Object implements ExtendedState
ExtendedState
.ExtendedState.ExtendedStateChangeListener
Constructor and Description |
---|
DefaultExtendedState()
Instantiates a new default extended state.
|
DefaultExtendedState(java.util.Map<java.lang.Object,java.lang.Object> variables)
Instantiates a new default extended state.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(java.lang.Object key,
java.lang.Class<T> type)
Gets a variable which is automatically casted into a type.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getVariables()
Gets the extended state variables.
|
void |
setExtendedStateChangeListener(ExtendedState.ExtendedStateChangeListener listener)
Sets the extended state change listener.
|
java.lang.String |
toString() |
public DefaultExtendedState()
public DefaultExtendedState(java.util.Map<java.lang.Object,java.lang.Object> variables)
variables
- the variablespublic java.util.Map<java.lang.Object,java.lang.Object> getVariables()
ExtendedState
getVariables
in interface ExtendedState
public <T> T get(java.lang.Object key, java.lang.Class<T> type)
ExtendedState
get
in interface ExtendedState
T
- the return typekey
- the variable keytype
- the variable typepublic void setExtendedStateChangeListener(ExtendedState.ExtendedStateChangeListener listener)
ExtendedState
setExtendedStateChangeListener
in interface ExtendedState
listener
- the new extended state change listenerpublic java.lang.String toString()
toString
in class java.lang.Object