Java java.util IdentityHashMap fields, constructors, methods, implement or subclass

Example usage for Java java.util IdentityHashMap fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util IdentityHashMap.

The text is from its open source code.

Field

intsize
The number of key-value mappings contained in this identity hash map.
SetentrySet
This field is initialized to contain an instance of the entry set view the first time this view is requested.

Constructor

IdentityHashMap()
Constructs a new, empty identity hash map with a default expected maximum size (21).
IdentityHashMap(int expectedMaxSize)
Constructs a new, empty map with the specified expected maximum size.
IdentityHashMap(Map m)
Constructs a new identity hash map containing the keys-value mappings in the specified map.

Method

voidclear()
Removes all of the mappings from this map.
Objectclone()
Returns a shallow copy of this identity hash map: the keys and values themselves are not cloned.
booleancontainsKey(Object key)
Tests whether the specified object reference is a key in this identity hash map.
booleancontainsValue(Object value)
Tests whether the specified object reference is a value in this identity hash map.
booleanequals(Object o)
Compares the specified object with this map for equality.
Vget(Object key)
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
inthashCode()
Returns the hash code value for this map.
booleanisEmpty()
Returns true if this identity hash map contains no key-value mappings.
SetkeySet()
Returns an identity-based set view of the keys contained in this map.
Vput(K key, V value)
Associates the specified value with the specified key in this identity hash map.
voidputAll(Map m)
Copies all of the mappings from the specified map to this map.
Vremove(Object key)
Removes the mapping for this key from this map if present.
StringtoString()
Returns a string representation of the object.
Collectionvalues()
Returns a Collection view of the values contained in this map.