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 voidaddListener(StateChangeListener listener)java.util.Map<java.lang.String,java.lang.String>getState()booleanhasState(StateObj state)booleanhasState(java.lang.String key, java.lang.String value)java.lang.StringtoString()booleanupdateState(StateObj values)Add the state to this statebooleanupdateState(java.lang.String key, java.lang.String value)Add the state to this statebooleanupdateState(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:MutableStateObjAdd the state to this state- Specified by:
updateStatein 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:MutableStateObjAdd the state to this state- Specified by:
updateStatein 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:MutableStateObjAdd the state to this state- Specified by:
updateStatein 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:
addListenerin interfaceListenableMutableStateObj
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-