Class SynchronizedBag.SynchronizedBagSet

    • Constructor Detail

      • SynchronizedBagSet

        SynchronizedBagSet​(Set<E> set,
                           Object lock)
        Constructor.
        Parameters:
        set - the set to decorate
        lock - the lock to use, shared with the bag