K - Key to use for gathering information.V - Value to fetch, that is a generic method.public interface ReadOnlyStore<K,V>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(K key) |
default V |
get(K key)
Get a single value from the storage.
|
Map<K,V> |
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.
|
default int |
size() |
@Nonnull Map<K,V> getAll(@Nonnull Collection<K> keys)
keys - The keys to look up.boolean containsKey(@Nonnull K key)
key - The key to look up.@Nonnull Collection<K> keys()
@Nullable default V get(@Nonnull K key)
key - The key to look up.default int size()
Copyright © 2015–2019 morimekta.net. All rights reserved.