Package com.dtolabs.rundeck.core.rules
Class DataState
- java.lang.Object
-
- com.dtolabs.rundeck.core.rules.DataState
-
- All Implemented Interfaces:
ListenableMutableStateObj
,MutableStateObj
,StateObj
public class DataState extends java.lang.Object implements ListenableMutableStateObj
Created by greg on 4/28/16.
-
-
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 stateboolean
updateState(java.lang.String key, java.lang.String value)
Add the state to this stateboolean
updateState(java.util.Map<java.lang.String,java.lang.String> values)
Add the state to this state
-
-
-
Method Detail
-
updateState
public boolean updateState(StateObj values)
Description copied from interface:MutableStateObj
Add the state to this state- Specified by:
updateState
in interfaceMutableStateObj
- 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 interfaceMutableStateObj
- 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 interfaceMutableStateObj
- Parameters:
key
- keyvalue
- value- Returns:
- true if this state was changed, false otherwise
-
getState
public java.util.Map<java.lang.String,java.lang.String> getState()
-
hasState
public boolean hasState(java.lang.String key, java.lang.String value)
-
hasState
public boolean hasState(StateObj state)
-
addListener
public void addListener(StateChangeListener listener)
- Specified by:
addListener
in interfaceListenableMutableStateObj
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-