Package eu.antidotedb.client
Class MapKey.MapReadResult
- java.lang.Object
-
- java.util.AbstractMap<Key<?>,java.lang.Object>
-
- eu.antidotedb.client.MapKey.MapReadResult
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <V> java.util.Map<java.lang.String,V>
asJavaMap(ResponseDecoder<V> responseDecoder)
Same asasJavaMap(Function, ResponseDecoder)
with Strings as keys (keyCoder = key -> key.getKey().toStringUtf8())<K,V>
java.util.Map<K,V>asJavaMap(java.util.function.Function<Key<?>,K> keyCoder, ResponseDecoder<V> responseDecoder)
Converts this result to a plain Java mapboolean
containsKey(java.lang.Object key)
java.util.Set<java.util.Map.Entry<Key<?>,java.lang.Object>>
entrySet()
<V> V
get(Key<V> key)
Reads an entry from the map.java.lang.Object
get(java.lang.Object key)
Deprecated.Use the get-method which takes a Key instead.java.util.Set<Key<?>>
keySet()
int
size()
-
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, put, putAll, remove, toString, values
-
-
-
-
Method Detail
-
get
@Deprecated public java.lang.Object get(java.lang.Object key)
Deprecated.Use the get-method which takes a Key instead.
-
get
public <V> V get(Key<V> key)
Reads an entry from the map.
-
containsKey
public boolean containsKey(java.lang.Object key)
-
size
public int size()
-
keySet
public java.util.Set<Key<?>> keySet()
-
entrySet
public java.util.Set<java.util.Map.Entry<Key<?>,java.lang.Object>> entrySet()
-
asJavaMap
public <V> java.util.Map<java.lang.String,V> asJavaMap(ResponseDecoder<V> responseDecoder)
Same asasJavaMap(Function, ResponseDecoder)
with Strings as keys (keyCoder = key -> key.getKey().toStringUtf8())
-
asJavaMap
public <K,V> java.util.Map<K,V> asJavaMap(java.util.function.Function<Key<?>,K> keyCoder, ResponseDecoder<V> responseDecoder)
Converts this result to a plain Java map- Type Parameters:
V
- The values in the resulting map- Parameters:
keyCoder
- a coder which specifies how CRDT-keys are converted to keys in the mapresponseDecoder
- a decoder specifying how values are decoded (See static methods inResponseDecoder
)- Returns:
- A plain Java map representing this result.
-
-