Class ConcurrentHashSet<E>

    • Constructor Detail

      • ConcurrentHashSet

        public ConcurrentHashSet()
        Deprecated.
        Constructs a new, empty set; the backing ConcurrentHashMap instance has default initial capacity (16) and load factor (0.75).
      • ConcurrentHashSet

        public ConcurrentHashSet​(Collection<? extends E> c)
        Deprecated.
        Constructs a new set containing the elements in the specified collection. The ConcurrentHashMap is created with default load factor (0.75) and an initial capacity sufficient to contain the elements in the specified collection.
        Parameters:
        c - the collection whose elements are to be placed into this set.
        Throws:
        NullPointerException - if the specified collection is null.
      • ConcurrentHashSet

        public ConcurrentHashSet​(int initialCapacity,
                                 float loadFactor)
        Deprecated.
        Constructs a new, empty set; the backing ConcurrentHashMap instance has the specified initial capacity and the specified load factor.
        Parameters:
        initialCapacity - the initial capacity of the hash map.
        loadFactor - the load factor of the hash map.
        Throws:
        IllegalArgumentException - if the initial capacity is less than zero, or if the load factor is nonpositive.
      • ConcurrentHashSet

        public ConcurrentHashSet​(int initialCapacity)
        Deprecated.
        Constructs a new, empty set; the backing HashMap instance has the specified initial capacity and default load factor, which is 0.75.
        Parameters:
        initialCapacity - the initial capacity of the hash table.
        Throws:
        IllegalArgumentException - if the initial capacity is less than zero.