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 ofMap
chooses 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 void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
V
get(java.lang.Object key)
boolean
isEmpty()
java.util.Set<K>
keySet()
V
put(K key, V value)
void
putAll(java.util.Map<? extends K,? extends V> t)
V
remove(java.lang.Object key)
int
size()
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:
entrySet
in interfacejava.util.Map<K,V>
- Throws:
UnimplementedError
- if the backingStore implementation does
-
-