public class VanillaKeyValueStore<K,MV,V> extends Object implements KeyValueStore<K,MV,V>
KeyValueStore.Entry<K,V>| Constructor and Description |
|---|
VanillaKeyValueStore(FactoryContext context) |
| Modifier and Type | Method and Description |
|---|---|
Asset |
asset() |
void |
asset(Asset asset) |
void |
clear() |
void |
entriesFor(int segment,
java.util.function.Consumer<KeyValueStore.Entry<K,V>> kvConsumer) |
Iterator<Map.Entry<K,V>> |
entrySetIterator() |
V |
getAndPut(K key,
V value) |
V |
getAndRemove(K key) |
V |
getUsing(K key,
MV value) |
void |
keysFor(int segment,
java.util.function.Consumer<K> kConsumer) |
long |
size() |
KeyValueStore |
underlying() |
void |
underlying(KeyValueStore underlying) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsKey, get, isReadOnly, put, remove, replace, segmentFor, segmentsisUnderlyingpublic VanillaKeyValueStore(FactoryContext context)
public V getAndPut(K key, V value)
getAndPut in interface KeyValueStore<K,MV,V>public V getAndRemove(K key)
getAndRemove in interface KeyValueStore<K,MV,V>public V getUsing(K key, MV value)
getUsing in interface KeyValueStore<K,MV,V>public long size()
size in interface KeyValueStore<K,MV,V>public void keysFor(int segment,
java.util.function.Consumer<K> kConsumer)
keysFor in interface KeyValueStore<K,MV,V>public void entriesFor(int segment,
java.util.function.Consumer<KeyValueStore.Entry<K,V>> kvConsumer)
entriesFor in interface KeyValueStore<K,MV,V>public Iterator<Map.Entry<K,V>> entrySetIterator()
entrySetIterator in interface KeyValueStore<K,MV,V>public void asset(Asset asset)
public void clear()
clear in interface KeyValueStore<K,MV,V>public void underlying(KeyValueStore underlying)
underlying in interface Assetted<KeyValueStore<K,MV,V>>public KeyValueStore underlying()
underlying in interface Assetted<KeyValueStore<K,MV,V>>Copyright © 2015. All rights reserved.