K - the type of the keysT - the decoded type of the valuesPT - the persisted type from which we are decoding and to which we are
encoding each valuespublic class PersistedMap<K,T,PT> extends AbstractMap<K,T> implements PersistedObject<T,PT>
PersistedMap class provides a Map implementation
suitable to hold persisted values.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
Set<Map.Entry<K,T>> |
entrySet() |
T |
get(Object key) |
Map<K,PersistedValue<T,PT>> |
getPersistedMap()
Gets the persisted map.
|
boolean |
isEmpty() |
Set<K> |
keySet() |
T |
put(K key,
T value) |
T |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<T> |
values() |
clone, containsValue, equals, hashCode, putAllfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Map<K,PersistedValue<T,PT>> getPersistedMap()
null persisted mappublic int size()
size in interface Map<K,T>size in class AbstractMap<K,T>Map.size()public boolean isEmpty()
isEmpty in interface Map<K,T>isEmpty in class AbstractMap<K,T>Map.isEmpty()public boolean containsKey(Object key)
containsKey in interface Map<K,T>containsKey in class AbstractMap<K,T>Map.containsKey(java.lang.Object)public T get(Object key)
get in interface Map<K,T>get in class AbstractMap<K,T>Map.get(java.lang.Object)public T put(K key, T value)
put in interface Map<K,T>put in class AbstractMap<K,T>Map.put(java.lang.Object, java.lang.Object)public T remove(Object key)
remove in interface Map<K,T>remove in class AbstractMap<K,T>Map.remove(java.lang.Object)public void clear()
clear in interface Map<K,T>clear in class AbstractMap<K,T>Map.clear()public Set<K> keySet()
keySet in interface Map<K,T>keySet in class AbstractMap<K,T>Map.keySet()public Collection<T> values()
values in interface Map<K,T>values in class AbstractMap<K,T>Map.values()public Set<Map.Entry<K,T>> entrySet()
entrySet in interface Map<K,T>entrySet in class AbstractMap<K,T>Map.entrySet()public String toString()
toString in class AbstractMap<K,T>Object.toString()Copyright (C) 2015-2015 The Helenus Driver Project Authors.