public class InMemorySetStore<K,M> extends Object implements ReadWriteSetStore<K,M>
| Constructor and Description |
|---|
InMemorySetStore(Function<M,K> messageToKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(K key) |
Map<K,M> |
getAll(Collection<K> keys)
Look up a set of keys from the storage.
|
Collection<K> |
keys()
Get a collection of all the keys in the store.
|
void |
putAll(Collection<M> values) |
void |
removeAll(Collection<K> keys)
Remove the values for the given keys.
|
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitput, removeget@Nonnull public Map<K,M> getAll(@Nonnull Collection<K> keys)
ReadOnlyStoregetAll in interface ReadOnlyStore<K,M>keys - The keys to look up.public boolean containsKey(@Nonnull K key)
containsKey in interface ReadOnlyStore<K,M>key - The key to look up.@Nonnull public Collection<K> keys()
ReadOnlyStorekeys in interface ReadOnlyStore<K,M>public int size()
size in interface ReadOnlyStore<K,M>public void putAll(@Nonnull Collection<M> values)
putAll in interface ReadWriteSetStore<K,M>values - Put all key value pairs form this map into the storage.public void removeAll(Collection<K> keys)
ReadWriteSetStoreremoveAll in interface ReadWriteSetStore<K,M>keys - Map of removed key value pairs.Copyright © 2015–2020 morimekta.net. All rights reserved.