Class AbstractStateContext

    • Constructor Detail

      • AbstractStateContext

        public AbstractStateContext()
    • Method Detail

      • getAttribute

        public Object getAttribute​(Object key)
        Returns the value of the attribute with the specified key or nullif not found.
        Specified by:
        getAttribute in interface StateContext
        Parameters:
        key - the key.
        Returns:
        the value or null.
      • setAttribute

        public void setAttribute​(Object key,
                                 Object value)
        Sets the value of the attribute with the specified key.
        Specified by:
        setAttribute in interface StateContext
        Parameters:
        key - the key.
        value - the value.
      • setCurrentState

        public void setCurrentState​(State state)
        Sets the current State. This is only meant for internal use. Don't call it directly!
        Specified by:
        setCurrentState in interface StateContext
        Parameters:
        state - the new current State.