public class CachedMap<K,V> extends AbstractMap<K,V> implements Wrapper<Map<K,V>>, Flushable, Closeable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CachedMap(Map<K,V> source) |
CachedMap(Map<K,V> source,
Map<K,V> cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
void |
flush() |
V |
get(Object key) |
Map<K,V> |
getCache() |
Map<K,V> |
getWrappedObject()
Returns the object that is wrapped inside the wrapper
|
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
void |
setWrappedObject(Map<K,V> object) |
int |
size() |
beforeReadObject, beforeWriteObject, entrySet, get, getAsString, toString, valuesclone, equals, hashCodepublic void clear()
public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in class AbstractMap<K,V>public boolean isEmpty()
public int size()
public Map<K,V> getWrappedObject()
WrappergetWrappedObject in interface Wrapper<Map<K,V>>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void flush()
throws IOException
flush in interface FlushableIOExceptionCopyright © 2015 Universal Java Matrix Package. All rights reserved.