Class TDoubleHashSet

    • Constructor Detail

      • TDoubleHashSet

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

        public TDoubleHashSet(int initialCapacity)
        Creates a new TDoubleHashSet instance with a prime capacity equal to or greater than initialCapacity and with the default load factor.
        Parameters:
        initialCapacity - an int value
      • TDoubleHashSet

        public TDoubleHashSet(int initialCapacity,
                              float load_factor)
        Creates a new TIntHash instance with a prime value at or near the specified capacity and load factor.
        Parameters:
        initialCapacity - used to find a prime capacity for the table.
        load_factor - used to calculate the threshold over which rehashing takes place.
      • TDoubleHashSet

        public TDoubleHashSet(int initial_capacity,
                              float load_factor,
                              double no_entry_value)
        Creates a new TDoubleHashSet instance with a prime capacity equal to or greater than initial_capacity and with the specified load factor.
        Parameters:
        initial_capacity - an int value
        load_factor - a float value
        no_entry_value - a double value that represents null.
      • TDoubleHashSet

        public TDoubleHashSet(Collection<? extends Double> collection)
        Creates a new TDoubleHashSet instance that is a copy of the existing Collection.
        Parameters:
        collection - a Collection that will be duplicated.
      • TDoubleHashSet

        public TDoubleHashSet(TDoubleCollection collection)
        Creates a new TDoubleHashSet instance that is a copy of the existing set.
        Parameters:
        collection - a TDoubleSet that will be duplicated.
      • TDoubleHashSet

        public TDoubleHashSet(double[] array)
        Creates a new TDoubleHashSet instance containing the elements of array.
        Parameters:
        array - an array of double primitives