Class TIntHashSet

    • Constructor Detail

      • TIntHashSet

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

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

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

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

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

        public TIntHashSet(TIntCollection collection)
        Creates a new TIntHashSet instance that is a copy of the existing set.
        Parameters:
        collection - a TIntSet that will be duplicated.
      • TIntHashSet

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