Package com.ibm.wala.util.collections
Class BimodalMap<K,V>
- java.lang.Object
-
- com.ibm.wala.util.collections.BimodalMap<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>
public class BimodalMap<K,V> extends java.lang.Object implements java.util.Map<K,V>This implementation ofMapchooses between one of two implementations, depending on the size of the map.
-
-
Constructor Summary
Constructors Constructor Description BimodalMap(int cutoff)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Set<java.util.Map.Entry<K,V>>entrySet()Vget(java.lang.Object key)booleanisEmpty()java.util.Set<K>keySet()Vput(K key, V value)voidputAll(java.util.Map<? extends K,? extends V> t)Vremove(java.lang.Object key)intsize()java.util.Collection<V>values()
-
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
remove
public V remove(java.lang.Object key)
-
putAll
public void putAll(java.util.Map<? extends K,? extends V> t) throws java.lang.UnsupportedOperationException
-
values
public java.util.Collection<V> values()
-
entrySet
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
- Specified by:
entrySetin interfacejava.util.Map<K,V>- Throws:
UnimplementedError- if the backingStore implementation does
-
-