public class TopLinkIdentityHashMap
extends java.util.AbstractMap
implements java.util.Map, java.lang.Cloneable, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected oracle.toplink.essentials.internal.helper.TopLinkIdentityHashMap.Entry[] |
entries |
protected float |
loadFactor |
protected int |
threshold |
| Constructor and Description |
|---|
TopLinkIdentityHashMap()
Constructs a new TopLinkIdentityHashMap with a default initial
capacity of 32 and a loadfactor of 0.75.
|
TopLinkIdentityHashMap(int initialCapacity)
Constructs a new TopLinkIdentityHashMap with the given
initial capacity and a default loadFactor of 0.75.
|
TopLinkIdentityHashMap(int initialCapacity,
float loadFactor)
Constructs a new TopLinkIdentityHashMap with the given
initial capacity and the given loadFactor.
|
TopLinkIdentityHashMap(java.util.Map m)
Constructs a new TopLinkIdentityHashMap with the same mappings
as the given map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all of the mappings from this TopLinkIdentityHashMap.
|
java.lang.Object |
clone()
Returns a shallow copy of this TopLinkIdentityHashMap (the
elements are not cloned).
|
boolean |
containsKey(java.lang.Object key)
Returns true if this TopLinkIdentityHashMap contains a
mapping for the given key.
|
boolean |
containsValue(java.lang.Object obj)
Returns true if this TopLinkIdentityHashMap contains
the given object.
|
java.util.Set |
entrySet()
Returns a collection view of the mappings contained in this
TopLinkIdentityHashMap.
|
java.lang.Object |
get(java.lang.Object key)
Returns the value to which the given key is mapped in this
TopLinkIdentityHashMap.
|
boolean |
isEmpty() |
java.util.Set |
keySet()
Returns a set view of the keys contained in this
TopLinkIdentityHashMap.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object obj)
Associate the given object with the given key in this
TopLinkIdentityHashMap, replacing any existing mapping.
|
void |
putAll(java.util.Map m)
Copies all of the mappings from the given map to this
TopLinkIdentityHashMap, replacing any existing mappings.
|
java.lang.Object |
remove(java.lang.Object key)
Removes the mapping (key and its corresponding value) from this
TopLinkIdentityHashMap, if present.
|
int |
size() |
java.util.Collection |
values()
Returns a collection view of the values contained in this
TopLinkIdentityHashMap.
|
protected transient oracle.toplink.essentials.internal.helper.TopLinkIdentityHashMap.Entry[] entries
protected transient int count
protected int threshold
protected float loadFactor
public TopLinkIdentityHashMap(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity of this
TopLinkIdentityHashMap.loadFactor - the loadFactor of the TopLinkIdentityHashMap.java.lang.IllegalArgumentException - if the initial capacity is less
than zero, or if the loadFactor is nonpositive.public TopLinkIdentityHashMap(int initialCapacity)
initialCapacity - the initial capacity of the
TopLinkIdentityHashMap.IllegalArgumentException - if the initial capacity is less
than zero.public TopLinkIdentityHashMap()
public TopLinkIdentityHashMap(java.util.Map m)
m - the map whose mappings are to be placed in the
TopLinkIdentityHashMap.public int size()
size in interface java.util.Mapsize in class java.util.AbstractMappublic boolean isEmpty()
isEmpty in interface java.util.MapisEmpty in class java.util.AbstractMappublic boolean containsValue(java.lang.Object obj)
containsValue in interface java.util.MapcontainsValue in class java.util.AbstractMapobj - the object to find.NullPointerException - if obj is null.public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.MapcontainsKey in class java.util.AbstractMapkey - object to be used as a key into this
TopLinkIdentityHashMap.public java.lang.Object get(java.lang.Object key)
get in interface java.util.Mapget in class java.util.AbstractMapkey - key whose associated value is to be returned.public java.lang.Object put(java.lang.Object key,
java.lang.Object obj)
put in interface java.util.Mapput in class java.util.AbstractMapkey - key to map to given object.obj - object to be associated with key.NullPointerException - if obj is null.public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapremove in class java.util.AbstractMapkey - key whose mapping is to be removed from the map.public void putAll(java.util.Map m)
putAll in interface java.util.MapputAll in class java.util.AbstractMapm - mappings to be stored in this TopLinkIdentityHashMap.NullPointerException - if m is null.public void clear()
clear in interface java.util.Mapclear in class java.util.AbstractMappublic java.lang.Object clone()
clone in class java.util.AbstractMappublic java.util.Set keySet()
keySet in interface java.util.MapkeySet in class java.util.AbstractMappublic java.util.Collection values()
values in interface java.util.Mapvalues in class java.util.AbstractMappublic java.util.Set entrySet()
entrySet in interface java.util.MapentrySet in class java.util.AbstractMap