Package com.yahoo.vespa.model.utils
Class FreezableMap<K,V>
- java.lang.Object
-
- com.yahoo.vespa.model.utils.FreezableMap<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>
public class FreezableMap<K,V> extends java.lang.Object implements java.util.Map<K,V>
Delegates to a map that can be frozen. Not thread safe.- Author:
- Tony Vaagenes
-
-
Constructor Summary
Constructors Constructor Description FreezableMap(java.lang.Class<java.util.LinkedHashMap> mapClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object o)
boolean
containsValue(java.lang.Object o)
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
boolean
equals(java.lang.Object o)
void
freeze()
V
get(java.lang.Object o)
int
hashCode()
boolean
isEmpty()
boolean
isFrozen()
java.util.Set<K>
keySet()
V
put(K key, V value)
void
putAll(java.util.Map<? extends K,? extends V> map)
V
remove(java.lang.Object o)
int
size()
java.util.Collection<V>
values()
-
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object o)
-
containsValue
public boolean containsValue(java.lang.Object o)
-
values
public java.util.Collection<V> values()
-
equals
public boolean equals(java.lang.Object o)
-
hashCode
public int hashCode()
-
freeze
public void freeze()
-
isFrozen
public boolean isFrozen()
-
-