K - the key type.V - the value type.public class WeakIdentityHashMap<K,V> extends Object implements Map<K,V>
IdentityHashMap and
WeakHashMap.
Note that the map entries might change each time the object is explicitly accessed.
Created by davide-maestroni on 11/17/2014.| Constructor and Description |
|---|
WeakIdentityHashMap()
Constructor.
|
WeakIdentityHashMap(int initialCapacity)
Constructor.
|
WeakIdentityHashMap(int initialCapacity,
float loadFactor)
Constructor.
|
WeakIdentityHashMap(Map<? extends K,? extends V> map)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
V |
get(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K k,
V v) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
remove(Object o) |
int |
size() |
Collection<V> |
values() |
public WeakIdentityHashMap()
public WeakIdentityHashMap(@NotNull
Map<? extends K,? extends V> map)
map - the initial content.HashMap.HashMap(java.util.Map)public WeakIdentityHashMap(int initialCapacity)
initialCapacity - the initial capacity.HashMap.HashMap(int)public WeakIdentityHashMap(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity.loadFactor - the load factor.HashMap.HashMap(int, float)public int hashCode()
public boolean containsKey(Object o)
containsKey in interface Map<K,V>public boolean containsValue(Object o)
containsValue in interface Map<K,V>