Package org.onosproject.persistence.impl
Class PersistentMap<K,V>
- java.lang.Object
-
- org.onosproject.persistence.impl.PersistentMap<K,V>
-
-
Constructor Summary
Constructors Constructor Description PersistentMap(org.onosproject.store.service.Serializer serializer, org.mapdb.DB database, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<K,V>>entrySet()booleanequals(Object map)Vget(Object key)inthashCode()booleanisEmpty()Set<K>keySet()Vput(K key, V value)voidputAll(Map<? extends K,? extends V> m)voidreadInto(Map<K,V> items)Reads this set in deserialized form into the provided map.Vremove(Object key)intsize()Collection<V>values()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
PersistentMap
public PersistentMap(org.onosproject.store.service.Serializer serializer, org.mapdb.DB database, String name)
-
-
Method Detail
-
readInto
public void readInto(Map<K,V> items)
Reads this set in deserialized form into the provided map.- Parameters:
items- the map to be populated
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>
-
equals
public boolean equals(Object map)
-
-