public class TransientStateHolder<K,V> extends java.lang.Object implements StateHolder<K,V>, java.io.Serializable
| Constructor and Description |
|---|
TransientStateHolder() |
| 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. |
boolean |
equals(java.lang.Object o) |
V |
get(K key)
Retrieves the value mapped to the given
key |
int |
hashCode() |
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. |
public V putIfAbsent(K key, V value)
StateHoldernull) associates it with the given value and returns
null, else returns the current value.putIfAbsent in interface StateHolder<K,V>key - a keyvalue - a valuenull if there was no mapping for the key.public V get(K key)
StateHolderkeyget in interface StateHolder<K,V>key - a keypublic java.util.Set<java.util.Map.Entry<K,V>> entrySet()
StateHolderStateHolder as a Set of Map.Entry instances.entrySet in interface StateHolder<K,V>StateHolder mappingspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object