Class DefaultExtendedState
java.lang.Object
org.springframework.statemachine.support.DefaultExtendedState
- All Implemented Interfaces:
ExtendedState
Default implementation of a
ExtendedState
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.statemachine.ExtendedState
ExtendedState.ExtendedStateChangeListener
-
Constructor Summary
ConstructorDescriptionInstantiates a new default extended state.DefaultExtendedState
(Map<Object, Object> variables) Instantiates a new default extended state. -
Method Summary
-
Constructor Details
-
DefaultExtendedState
public DefaultExtendedState()Instantiates a new default extended state. -
DefaultExtendedState
Instantiates a new default extended state.- Parameters:
variables
- the variables
-
-
Method Details
-
getVariables
Description copied from interface:ExtendedState
Gets the extended state variables.- Specified by:
getVariables
in interfaceExtendedState
- Returns:
- the extended state variables
-
get
Description copied from interface:ExtendedState
Gets a variable which is automatically casted into a type.- Specified by:
get
in interfaceExtendedState
- Type Parameters:
T
- the return type- Parameters:
key
- the variable keytype
- the variable type- Returns:
- the variable
-
setExtendedStateChangeListener
Description copied from interface:ExtendedState
Sets the extended state change listener.- Specified by:
setExtendedStateChangeListener
in interfaceExtendedState
- Parameters:
listener
- the new extended state change listener
-
hashCode
public int hashCode() -
equals
-
toString
-