K - type of KeysV - type of Valuespublic interface StateHolder<K,V>
Map like structure that can hold key value mappings.| Modifier and Type | Method and Description | 
|---|---|
java.util.Set<java.util.Map.Entry<K,V>> | 
entrySet()
Retrieves all the entries in the  
StateHolder as a Set of Map.Entry instances. | 
V | 
get(K key)
Retrieves the value mapped to the given  
key | 
V | 
putIfAbsent(K key,
           V value)
If the specified key is not already associated with a value (or is mapped
 to  
null) associates it with the given value and returns
 null, else returns the current value. | 
V putIfAbsent(K key, V value)
null) associates it with the given value and returns
 null, else returns the current value.key - a keyvalue - a valuenull if there was no mapping for the key.V get(K key)
keykey - a key