Package org.onosproject.store.primitives
Class ConsistentMapBackedJavaMap<K,V>
- java.lang.Object
- 
- org.onosproject.store.primitives.ConsistentMapBackedJavaMap<K,V>
 
- 
- Type Parameters:
- K- key type
- V- value type
 - All Implemented Interfaces:
- Map<K,V>
 
 public final class ConsistentMapBackedJavaMap<K,V> extends Object implements Map<K,V> Standard javaMapbacked by aConsistentMap.
- 
- 
Constructor SummaryConstructors Constructor Description ConsistentMapBackedJavaMap(ConsistentMap<K,V> backingMap)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Vcompute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)VcomputeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)VcomputeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<K,V>>entrySet()voidforEach(BiConsumer<? super K,? super V> action)Vget(Object key)VgetOrDefault(Object key, V defaultValue)booleanisEmpty()Set<K>keySet()Vmerge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)Vput(K key, V value)voidputAll(Map<? extends K,? extends V> m)VputIfAbsent(K key, V value)Vremove(Object key)booleanremove(Object key, Object value)Vreplace(K key, V value)booleanreplace(K key, V oldValue, V newValue)intsize()StringtoString()Collection<V>values()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.Mapequals, hashCode, replaceAll
 
- 
 
- 
- 
- 
Constructor Detail- 
ConsistentMapBackedJavaMappublic ConsistentMapBackedJavaMap(ConsistentMap<K,V> backingMap) 
 
- 
 - 
Method Detail- 
containsKeypublic boolean containsKey(Object key) - Specified by:
- containsKeyin interface- Map<K,V>
 
 - 
containsValuepublic boolean containsValue(Object value) - Specified by:
- containsValuein interface- Map<K,V>
 
 - 
getOrDefaultpublic V getOrDefault(Object key, V defaultValue) - Specified by:
- getOrDefaultin interface- Map<K,V>
 
 - 
computeIfAbsentpublic V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction) - Specified by:
- computeIfAbsentin interface- Map<K,V>
 
 - 
computeIfPresentpublic V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction) - Specified by:
- computeIfPresentin interface- Map<K,V>
 
 - 
forEachpublic void forEach(BiConsumer<? super K,? super V> action) 
 
- 
 
-