Class TLongHashSet

    • Constructor Detail

      • TLongHashSet

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

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

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

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

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

        public TLongHashSet(TLongCollection collection)
        Creates a new TLongHashSet instance that is a copy of the existing set.
        Parameters:
        collection - a TLongSet that will be duplicated.
      • TLongHashSet

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