Class DataState

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addListener​(StateChangeListener listener)  
      java.util.Map<java.lang.String,​java.lang.String> getState()  
      boolean hasState​(StateObj state)  
      boolean hasState​(java.lang.String key, java.lang.String value)  
      java.lang.String toString()  
      boolean updateState​(StateObj values)
      Add the state to this state
      boolean updateState​(java.lang.String key, java.lang.String value)
      Add the state to this state
      boolean updateState​(java.util.Map<java.lang.String,​java.lang.String> values)
      Add the state to this state
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • updateState

        public boolean updateState​(StateObj values)
        Description copied from interface: MutableStateObj
        Add the state to this state
        Specified by:
        updateState in interface MutableStateObj
        Parameters:
        values - state
        Returns:
        true if this state was changed, false otherwise
      • updateState

        public boolean updateState​(java.util.Map<java.lang.String,​java.lang.String> values)
        Description copied from interface: MutableStateObj
        Add the state to this state
        Specified by:
        updateState in interface MutableStateObj
        Parameters:
        values - state
        Returns:
        true if this state was changed, false otherwise
      • updateState

        public boolean updateState​(java.lang.String key,
                                   java.lang.String value)
        Description copied from interface: MutableStateObj
        Add the state to this state
        Specified by:
        updateState in interface MutableStateObj
        Parameters:
        key - key
        value - value
        Returns:
        true if this state was changed, false otherwise
      • getState

        public java.util.Map<java.lang.String,​java.lang.String> getState()
        Specified by:
        getState in interface StateObj
        Returns:
        current state
      • hasState

        public boolean hasState​(java.lang.String key,
                                java.lang.String value)
        Specified by:
        hasState in interface StateObj
        Parameters:
        key - key
        value - vaue
        Returns:
        true if the state contains the exact key and value specified
      • hasState

        public boolean hasState​(StateObj state)
        Specified by:
        hasState in interface StateObj
        Parameters:
        state - test state
        Returns:
        true if the state contains all of the key/value state specified
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object