Class ObjectObjectIdentityHashMap<KType,​VType>

    • Constructor Detail

      • ObjectObjectIdentityHashMap

        public ObjectObjectIdentityHashMap()
        New instance with sane defaults.
      • ObjectObjectIdentityHashMap

        public ObjectObjectIdentityHashMap​(int expectedElements)
        New instance with sane defaults.
        Parameters:
        expectedElements - The expected number of elements guaranteed not to cause buffer expansion (inclusive).
      • ObjectObjectIdentityHashMap

        public ObjectObjectIdentityHashMap​(int expectedElements,
                                           double loadFactor)
        New instance with sane defaults.
        Parameters:
        expectedElements - The expected number of elements guaranteed not to cause buffer expansion (inclusive).
        loadFactor - The load factor for internal buffers. Insane load factors (zero, full capacity) are rejected by ObjectObjectHashMap.verifyLoadFactor(double).
      • ObjectObjectIdentityHashMap

        public ObjectObjectIdentityHashMap​(int expectedElements,
                                           double loadFactor,
                                           HashOrderMixingStrategy orderMixer)
        New instance with the provided defaults.
        Parameters:
        expectedElements - The expected number of elements guaranteed not to cause a rehash (inclusive).
        loadFactor - The load factor for internal buffers. Insane load factors (zero, full capacity) are rejected by ObjectObjectHashMap.verifyLoadFactor(double).
        orderMixer - Hash key order mixing strategy. See HashOrderMixing for predefined implementations. Use constant mixers only if you understand the potential consequences.
      • ObjectObjectIdentityHashMap

        public ObjectObjectIdentityHashMap​(ObjectObjectAssociativeContainer<? extends KType,​? extends VType> container)
        Create a hash map from all key-value pairs of another container.