Package com.dtolabs.rundeck.core.rules
Interface StateObj
-
- All Known Subinterfaces:
ListenableMutableStateObj,MutableStateObj
- All Known Implementing Classes:
DataState,StateLogger
public interface StateObjA key/value map used as a state
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getState()booleanhasState(StateObj state)booleanhasState(java.lang.String key, java.lang.String value)
-
-
-
Method Detail
-
getState
java.util.Map<java.lang.String,java.lang.String> getState()
- Returns:
- current state
-
hasState
boolean hasState(java.lang.String key, java.lang.String value)- Parameters:
key- keyvalue- vaue- Returns:
- true if the state contains the exact key and value specified
-
hasState
boolean hasState(StateObj state)
- Parameters:
state- test state- Returns:
- true if the state contains all of the key/value state specified
-
-