K - the key typeV - the value typepublic class PgxMap<K,V> extends PgxManagedObject
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(K key)
Blocking version of
containsKeyAsync(Object). |
PgxFuture<java.lang.Boolean> |
containsKeyAsync(K key)
Checks if the map contains key.
|
MapIterable<K,V> |
entries()
Blocking version of
entriesAsync(). |
PgxFuture<MapIterable<K,V>> |
entriesAsync()
Gets an entry set.
|
V |
get(K key)
Blocking version of
getAsync(Object). |
PgxFuture<V> |
getAsync(K key)
Gets the value of a key.
|
PgxGraph |
getGraph()
Gets the PgxGraph this map is bound to.
|
PropertyType |
getKeyType()
Gets the key type.
|
java.lang.String |
getName() |
PropertyType |
getValueType()
Gets the value type.
|
java.lang.Iterable<K> |
keys()
Blocking version of
keysAsync(). |
PgxFuture<java.lang.Iterable<K>> |
keysAsync() |
boolean |
remove(K key)
Blocking version of
removeAsync(Object). |
PgxFuture<java.lang.Boolean> |
removeAsync(K key)
Removes the entry specified by the given key from the map with the given name.
|
void |
set(K key, V value)
Blocking version of
setAsync(Object, Object). |
PgxFuture<java.lang.Void> |
setAsync(K key, V value)
Sets the value for a key in the map specified by the given name.
|
int |
size()
Blocking version of
sizeAsync(). |
PgxFuture<java.lang.Integer> |
sizeAsync()
Returns the size of the map
|
java.lang.String |
toString() |
equals, hashCodeclose, destroy, destroyAsyncpublic boolean containsKey(K key)
containsKeyAsync(Object). Calls containsKeyAsync(Object) and waits for the returned PgxFuture to complete.public PgxFuture<java.lang.Boolean> containsKeyAsync(K key)
key - the keypublic MapIterable<K,V> entries()
entriesAsync(). Calls entriesAsync() and waits for the returned PgxFuture to complete.public PgxFuture<MapIterable<K,V>> entriesAsync()
public V get(K key)
getAsync(Object). Calls getAsync(Object) and waits for the returned PgxFuture to complete.public PgxFuture<V> getAsync(K key)
key -public PgxGraph getGraph()
public PropertyType getKeyType()
public java.lang.String getName()
getName in class PgxManagedObjectpublic PropertyType getValueType()
public java.lang.Iterable<K> keys()
keysAsync(). Calls keysAsync() and waits for the returned PgxFuture to complete.public boolean remove(K key)
removeAsync(Object). Calls removeAsync(Object) and waits for the returned PgxFuture to complete.public PgxFuture<java.lang.Boolean> removeAsync(K key)
key - key of the entry in the map to be removed.public void set(K key, V value)
setAsync(Object, Object). Calls setAsync(Object, Object) and waits for the returned PgxFuture to complete.public PgxFuture<java.lang.Void> setAsync(K key, V value)
key - key of the entryvalue - new valuepublic int size()
sizeAsync(). Calls sizeAsync() and waits for the returned PgxFuture to complete.public PgxFuture<java.lang.Integer> sizeAsync()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.