Class ConcurrentHashSet<E>

Type Parameters:
E - The type of the element stored in the set
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Set<E>

public class ConcurrentHashSet<E> extends MapBackedSet<E>
See Also:
  • Field Details

  • Constructor Details

    • ConcurrentHashSet

      public ConcurrentHashSet()
      Creates a new instance of ConcurrentHashSet
    • ConcurrentHashSet

      public ConcurrentHashSet(Collection<E> collection)
      Creates a new instance of ConcurrentHashSet, initialized with the content of another collection
      Parameters:
      collection - The collection to inject in this set
  • Method Details