Class TShortHashSet

    • Constructor Detail

      • TShortHashSet

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

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

        public TShortHashSet(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.
      • TShortHashSet

        public TShortHashSet(int initial_capacity,
                             float load_factor,
                             short no_entry_value)
        Creates a new TShortHashSet 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 short value that represents null.
      • TShortHashSet

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

        public TShortHashSet(TShortCollection collection)
        Creates a new TShortHashSet instance that is a copy of the existing set.
        Parameters:
        collection - a TShortSet that will be duplicated.
      • TShortHashSet

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