Object to Object.
| Access | Constructor and Description |
|---|---|
| public | |
| public | ObjectObjectIdentityHashMap(int
The expected number of elements guaranteed not to cause buffer
expansion (inclusive). expectedElements)New instance with sane defaults. |
| public | ObjectObjectIdentityHashMap(int
The expected number of elements guaranteed not to cause a rehash
(inclusive). expectedElements, double The load factor for internal buffers. Insane load factors (zero, full
capacity) are rejected by loadFactor)verifyLoadFactor(double).New instance with the provided defaults. |
| public | ObjectObjectIdentityHashMap(ObjectObjectAssociativeContainer<? extends KType, ? extends VType> container)
Create a hash map from all key-value pairs of another container. |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | equalElements(ObjectObjectHashMap<?, ?> other)
Overrides com. Return true if all keys of some other container exist in this container. |
| public boolean | |
| public static <KType, VType> ObjectObjectIdentityHashMap | from(KType[] keys, VType[] values)
Hides com. Creates a hash map from two index-aligned arrays of key-value pairs. |
| public int | hashKey(KType key)
Overrides com. Returns a hash code for the given key. |
| ObjectObjectIdentityHashMap | back to summary |
|---|---|
| public ObjectObjectIdentityHashMap() New instance with sane defaults. | |
| ObjectObjectIdentityHashMap | back to summary |
|---|---|
| public ObjectObjectIdentityHashMap(int expectedElements) New instance with sane defaults.
| |
| ObjectObjectIdentityHashMap | back to summary |
|---|---|
| public ObjectObjectIdentityHashMap(int expectedElements, double loadFactor) New instance with the provided defaults.
| |
| ObjectObjectIdentityHashMap | back to summary |
|---|---|
| public ObjectObjectIdentityHashMap(ObjectObjectAssociativeContainer<? extends KType, ? extends VType> container) Create a hash map from all key-value pairs of another container. | |
| equalElements | back to summary |
|---|---|
| protected boolean equalElements(ObjectObjectHashMap<?, ?> other) Overrides com. Doc from com. Return true if all keys of some other container exist in this container. Equality comparison is
performed with this object's
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object v1, Object v2) Overrides com.
| |
| from | back to summary |
|---|---|
| public static <KType, VType> ObjectObjectIdentityHashMap Hides com. Creates a hash map from two index-aligned arrays of key-value pairs. | |
| hashKey | back to summary |
|---|---|
| public int hashKey(KType key) Overrides com. Doc from com. Returns a hash code for the given key. The output from this function should evenly distribute keys across the entire integer range.
| |