K - key typeMV - mutable value typeV - immutable value typepublic interface KeyValueStore<K,MV,V> extends Assetted<KeyValueStore<K,MV,V>>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
KeyValueStore.Entry<K,V> |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
default boolean |
containsKey(K key) |
void |
entriesFor(int segment,
java.util.function.Consumer<KeyValueStore.Entry<K,V>> kvConsumer) |
Iterator<Map.Entry<K,V>> |
entrySetIterator() |
default V |
get(K key) |
V |
getAndPut(K key,
V value) |
V |
getAndRemove(K key) |
V |
getUsing(K key,
MV value) |
default boolean |
isReadOnly() |
void |
keysFor(int segment,
java.util.function.Consumer<K> kConsumer) |
default void |
put(K key,
V value) |
default void |
remove(K key) |
default V |
replace(K key,
V value) |
default int |
segmentFor(K key) |
default int |
segments() |
long |
size() |
asset, asset, isUnderlying, underlying, underlyingdefault void remove(K key)
default boolean containsKey(K key)
default boolean isReadOnly()
long size()
default int segments()
default int segmentFor(K key)
void keysFor(int segment,
java.util.function.Consumer<K> kConsumer)
void entriesFor(int segment,
java.util.function.Consumer<KeyValueStore.Entry<K,V>> kvConsumer)
void clear()
Copyright © 2015. All rights reserved.