Documentation of 'gnu.trove.impl.hash.TPrimitiveHash' Java class
TPrimitiveHash
gnu.trove.impl.hash

Class TPrimitiveHash

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      byte[] _states
      flags indicating whether each position in the hash is FREE, FULL, or REMOVED
      static byte FREE
      flag indicating that a slot in the hashtable is available
      static byte FULL
      flag indicating that a slot in the hashtable is occupied
      static byte REMOVED
      flag indicating that the value of a slot in the hashtable was deleted
    • Constructor Summary

      Constructors 
      Constructor and Description
      TPrimitiveHash()
      Creates a new THash instance with the default capacity and load factor.
      TPrimitiveHash(int initialCapacity)
      Creates a new TPrimitiveHash instance with a prime capacity at or near the specified capacity and with the default load factor.
      TPrimitiveHash(int initialCapacity, float loadFactor)
      Creates a new TPrimitiveHash instance with a prime capacity at or near the minimum needed to hold initialCapacity elements with load factor loadFactor without triggering a rehash.
    • Field Detail

      • _states

        public transient byte[] _states
        flags indicating whether each position in the hash is FREE, FULL, or REMOVED
      • FREE

        public static final byte FREE
        flag indicating that a slot in the hashtable is available
        See Also:
        Constant Field Values
      • FULL

        public static final byte FULL
        flag indicating that a slot in the hashtable is occupied
        See Also:
        Constant Field Values
      • REMOVED

        public static final byte REMOVED
        flag indicating that the value of a slot in the hashtable was deleted
        See Also:
        Constant Field Values
    • Constructor Detail

      • TPrimitiveHash

        public TPrimitiveHash()
        Creates a new THash instance with the default capacity and load factor.
      • TPrimitiveHash

        public TPrimitiveHash(int initialCapacity)
        Creates a new TPrimitiveHash instance with a prime capacity at or near the specified capacity and with the default load factor.
        Parameters:
        initialCapacity - an int value
      • TPrimitiveHash

        public TPrimitiveHash(int initialCapacity,
                              float loadFactor)
        Creates a new TPrimitiveHash instance with a prime capacity at or near the minimum needed to hold initialCapacity elements with load factor loadFactor without triggering a rehash.
        Parameters:
        initialCapacity - an int value
        loadFactor - a float value
    • Method Detail

      • capacity

        public int capacity()
        Returns the capacity of the hash table. This is the true physical capacity, without adjusting for the load factor.
        Specified by:
        capacity in class THash
        Returns:
        the physical capacity of the hash table.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.