Class SynchronizedBag.SynchronizedBagSet
- java.lang.Object
-
- org.apache.commons.collections4.collection.SynchronizedCollection<E>
-
- org.apache.commons.collections4.bag.SynchronizedBag.SynchronizedBagSet
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.Set<E>
- Enclosing class:
- SynchronizedBag<E>
class SynchronizedBag.SynchronizedBagSet extends SynchronizedCollection<E> implements java.util.Set<E>
Synchronized Set for the Bag class.
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDSerialization version-
Fields inherited from class org.apache.commons.collections4.collection.SynchronizedCollection
lock
-
-
Constructor Summary
Constructors Constructor Description SynchronizedBagSet(java.util.Set<E> set, java.lang.Object lock)Constructor.
-
Method Summary
-
Methods inherited from class org.apache.commons.collections4.collection.SynchronizedCollection
add, addAll, clear, contains, containsAll, decorated, equals, hashCode, isEmpty, iterator, remove, removeAll, removeIf, retainAll, size, synchronizedCollection, toArray, toArray, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serialization version- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SynchronizedBagSet
SynchronizedBagSet(java.util.Set<E> set, java.lang.Object lock)
Constructor.- Parameters:
set- the set to decoratelock- the lock to use, shared with the bag
-
-