|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Analysis.PointerAnalysis.LightMap<K,V>
public class LightMap<K,V>
LightMap
is a very lightweight implementation of
the java.util.Map
interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
LightMap()
Creates a LightMap . |
|
LightMap(Map<? extends K,? extends V> map)
Creates a LightMap with the same mappings as the
given map. |
Method Summary | |
---|---|
void |
clear()
|
Object |
clone()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
Unsupported yet. |
Set<Map.Entry<K,V>> |
entrySet()
Returns an unmodifiable set view of the map entries. |
boolean |
equals(Object o)
|
V |
get(Object key)
|
int |
hashCode()
|
boolean |
isEmpty()
|
Set<K> |
keySet()
Returns an unmodifiable set view of the keys contained in this map. |
V |
put(K key,
V value)
Associates the specified value with the specified key in this map. |
void |
putAll(Map<? extends K,? extends V> map)
Copies all of the mappings from the specified map to this map. |
V |
remove(Object key)
Removes the mapping previously attached to key . |
int |
size()
|
String |
toString()
|
Collection<V> |
values()
Returns an unmodifiable collection view of the values from this map. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LightMap()
LightMap
.
public LightMap(Map<? extends K,? extends V> map)
LightMap
with the same mappings as the
given map.
Method Detail |
---|
public final int size()
size
in interface Map<K,V>
public final boolean isEmpty()
isEmpty
in interface Map<K,V>
public final boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public final boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public V get(Object key)
get
in interface Map<K,V>
public final V put(K key, V value)
put
in interface Map<K,V>
public final V remove(Object key)
key
.
Returns the old mapping if any, or null
otherwise.
remove
in interface Map<K,V>
public final void putAll(Map<? extends K,? extends V> map)
putAll
in interface Map<K,V>
public final void clear()
clear
in interface Map<K,V>
public final Collection<V> values()
values
in interface Map<K,V>
public final Set<Map.Entry<K,V>> entrySet()
entrySet
in interface Map<K,V>
public final Set<K> keySet()
keySet
in interface Map<K,V>
public Object clone()
clone
in class Object
public boolean equals(Object o)
equals
in interface Map<K,V>
equals
in class Object
public int hashCode()
hashCode
in interface Map<K,V>
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |