Class GridConcurrentPhantomHashSet<E>

  • All Implemented Interfaces:
    Iterable<E>, Collection<E>, Set<E>

    public class GridConcurrentPhantomHashSet<E>
    extends Object
    implements Set<E>
    Concurrent phantom hash set implementation.
    • Constructor Detail

      • GridConcurrentPhantomHashSet

        public GridConcurrentPhantomHashSet()
        Creates a new, empty set with a default initial capacity, load factor, and concurrencyLevel.
      • GridConcurrentPhantomHashSet

        public GridConcurrentPhantomHashSet​(int initCap)
        Creates a new, empty set with the specified initial capacity, and with default load factor and concurrencyLevel.
        Parameters:
        initCap - The initial capacity. The implementation performs internal sizing to accommodate this many elements.
        Throws:
        IllegalArgumentException - if the initial capacity of elements is negative.
      • GridConcurrentPhantomHashSet

        public GridConcurrentPhantomHashSet​(int initCap,
                                            float loadFactor,
                                            int conLevel)
        Creates a new, empty set with the specified initial capacity, load factor, and concurrency level.
        Parameters:
        initCap - The initial capacity. The implementation performs internal sizing to accommodate this many elements.
        loadFactor - The load factor threshold, used to control resizing. Resizing may be performed when the average number of elements per bin exceeds this threshold.
        conLevel - The estimated number of concurrently updating threads. The implementation performs internal sizing to try to accommodate this many threads.
        Throws:
        IllegalArgumentException - if the initial capacity is negative or the load factor or concurrency level are non-positive.
      • GridConcurrentPhantomHashSet

        public GridConcurrentPhantomHashSet​(Collection<E> c)
        Constructs a new set containing the elements in the specified collection, with default load factor and an initial capacity sufficient to contain the elements in the specified collection.
        Parameters:
        c - Collection to add.