Package com.ibm.wala.util.collections
Class SmallMap<K,V>
- java.lang.Object
-
- com.ibm.wala.util.collections.SmallMap<K,V>
-
-
Constructor Summary
Constructors Constructor Description SmallMap()
-
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()Vget(Object key)KgetKey(int i)Use with care.VgetValue(int i)Use with care.booleanisEmpty()Set<K>keySet()@Nullable Vput(Object key, Object value)voidputAll(Map<? extends K,? extends V> t)Vremove(Object key)intsize()Collection<V>values()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
getKey
public K getKey(int i) throws IllegalStateException
Use with care.- Returns:
- the ith key
- Throws:
IllegalStateException
-
getValue
public V getValue(int i) throws IllegalStateException
Use with care.- Returns:
- the ith key
- Throws:
IllegalStateException
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>
-
remove
public V remove(Object key) throws UnsupportedOperationException
- Specified by:
removein interfaceMap<K,V>- Throws:
UnsupportedOperationException
-
putAll
public void putAll(Map<? extends K,? extends V> t) throws UnsupportedOperationException
- Specified by:
putAllin interfaceMap<K,V>- Throws:
UnsupportedOperationException
-
-