Class SynchronizedBag.SynchronizedBagSet

All Implemented Interfaces:
Serializable, Iterable, Collection, Set
Enclosing class:
SynchronizedBag

class SynchronizedBag.SynchronizedBagSet extends SynchronizedSet
Synchronized Set for the Bag class.
  • Constructor Details

    • SynchronizedBagSet

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