public interface KV extends Map<String,ValueObject>
ValueObject indexed with String| Modifier and Type | Method and Description |
|---|---|
<T> T |
getValue(String key)
Returns a decoded value by key
|
KV |
putValue(String key,
Object val)
Add an new pair (key, val) into the store.
|
KV |
putValues(Map<String,Object> kvMap)
Put all (key, value) pair from an normal map into this KV map.
|
Map<String,Object> |
toMap()
Returns a `Map` contains (key, value) pairs that stored in this
`KV` map.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesKV putValue(String key, Object val)
key - the keyval - the Object typed value (instead of encoded ValueObject type)<T> T getValue(String key)
T - the generic type of the valuekey - the key index the value objectKV putValues(Map<String,Object> kvMap)
ValueObjectkvMap - the original mapMap<String,Object> toMap()
ValueObject.value()
stored in the ValueObject in this `KV` mapCopyright © 2017. All Rights Reserved.