public class PersistentMap<K,V> extends PersistentObject<ConcurrentHashMap<K,V>> implements Map<K,V>, Serializable
| Constructor and Description |
|---|
PersistentMap(String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value)
This method triggers the
#save() method. |
void |
putAll(Map<? extends K,? extends V> m)
This method triggers the
#save() method. |
V |
remove(Object key)
This method triggers the
#save() method. |
int |
size() |
Collection<V> |
values() |
get, getClazz, getPath, load, save, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic PersistentMap(String path)
path - Path of the file where the object is persistedpublic boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>Copyright © 2018. All rights reserved.