Top Description Fields Constructors Methods
com.carrotsearch.hppc

public Class ObjectDoubleIdentityHashMap<KType>

extends ObjectDoubleHashMap<KType>
Class Inheritance
Annotations
@Generated:KTypeVTypeIdentityHashMap.java
date:2024-06-04T15:20:16+0200
Static Imports
com.carrotsearch.hppc.Containers.*, com.carrotsearch.hppc.HashContainers.*

An identity hash map of Object to double.

Field Summary

Inherited from com.carrotsearch.hppc.ObjectDoubleHashMap:
assignedhasEmptyKeyiterationSeedkeysloadFactormaskresizeAtvalues

Constructor Summary

AccessConstructor and Description
public
ObjectDoubleIdentityHashMap()

New instance with sane defaults.

public
ObjectDoubleIdentityHashMap(int
The expected number of elements guaranteed not to cause buffer expansion (inclusive).
expectedElements
)

New instance with sane defaults.

public
ObjectDoubleIdentityHashMap(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 verifyLoadFactor(double).
loadFactor
)

New instance with the provided defaults.

public
ObjectDoubleIdentityHashMap(ObjectDoubleAssociativeContainer<? extends KType> container)

Create a hash map from all key-value pairs of another container.

Method Summary

Modifier and TypeMethod and Description
public boolean
public static <KType> ObjectDoubleIdentityHashMap<KType>
from(KType[] keys, double[] values)

Hides com.carrotsearch.hppc.ObjectDoubleHashMap.from.

Creates a hash map from two index-aligned arrays of key-value pairs.

public int
hashKey(KType key)

Overrides com.carrotsearch.hppc.ObjectDoubleHashMap.hashKey.

Returns a hash code for the given key.

Inherited from com.carrotsearch.hppc.ObjectDoubleHashMap:
addToallocateBuffersallocateThenInsertThenRehashclearclonecontainsKeyensureCapacityequalElementsequalsforEachforEachgetgetOrDefaulthashCodeindexExistsindexGetindexInsertindexOfindexRemoveindexReplaceisEmptyiteratorkeysnextIterationSeedputputAllputAllputOrAddramBytesAllocatedramBytesUsedrehashreleaseremoveremoveAllremoveAllremoveAllshiftConflictingKeyssizetoStringvaluesverifyLoadFactorvisualizeKeyDistribution

Constructor Detail

ObjectDoubleIdentityHashMapback to summary
public ObjectDoubleIdentityHashMap()

New instance with sane defaults.

ObjectDoubleIdentityHashMapback to summary
public ObjectDoubleIdentityHashMap(int expectedElements)

New instance with sane defaults.

Parameters
expectedElements:int

The expected number of elements guaranteed not to cause buffer expansion (inclusive).

ObjectDoubleIdentityHashMapback to summary
public ObjectDoubleIdentityHashMap(int expectedElements, double loadFactor)

New instance with the provided defaults.

Parameters
expectedElements:int

The expected number of elements guaranteed not to cause a rehash (inclusive).

loadFactor:double

The load factor for internal buffers. Insane load factors (zero, full capacity) are rejected by verifyLoadFactor(double).

ObjectDoubleIdentityHashMapback to summary
public ObjectDoubleIdentityHashMap(ObjectDoubleAssociativeContainer<? extends KType> container)

Create a hash map from all key-value pairs of another container.

Method Detail

equalsback to summary
public boolean equals(Object v1, Object v2)

Overrides com.carrotsearch.hppc.ObjectDoubleHashMap.equals.

Annotations
@Override
fromback to summary
public static <KType> ObjectDoubleIdentityHashMap<KType> from(KType[] keys, double[] values)

Hides com.carrotsearch.hppc.ObjectDoubleHashMap.from.

Doc from com.carrotsearch.hppc.ObjectDoubleHashMap.from.

Creates a hash map from two index-aligned arrays of key-value pairs.

Annotations
@SuppressWarnings:unchecked
hashKeyback to summary
public int hashKey(KType key)

Overrides com.carrotsearch.hppc.ObjectDoubleHashMap.hashKey.

Doc from com.carrotsearch.hppc.ObjectDoubleHashMap.hashKey.

Returns a hash code for the given key.

The output from this function should evenly distribute keys across the entire integer range.

Annotations
@Override