Class SyncSet
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.SyncCollection
EDU.oswego.cs.dl.util.concurrent.SyncSet
- All Implemented Interfaces:
Iterable, Collection, Set
- Direct Known Subclasses:
SyncSortedSet
SyncSets wrap Sync-based control around java.util.Sets.
They support two additional reader operations than do
SyncCollection: hashCode and equals.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class SyncCollection
SyncCollection.SyncCollectionIterator -
Field Summary
Fields inherited from class SyncCollection
c_, rd_, syncFailures_, wr_ -
Constructor Summary
ConstructorsConstructorDescriptionSyncSet(Set set, ReadWriteLock rwl) Create a new SyncSet protecting the given set, and using the given ReadWriteLock to control reader and writer methods.Create a new SyncSet protecting the given collection, and using the given sync to control both reader and writer methods.Create a new SyncSet protecting the given set, and using the given pair of locks to control reader and writer methods. -
Method Summary
Methods inherited from class SyncCollection
add, addAll, afterRead, beforeRead, clear, contains, containsAll, isEmpty, iterator, readerSync, remove, removeAll, retainAll, size, syncFailures, toArray, toArray, unprotectedIterator, writerSyncMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
SyncSet
-
SyncSet
Create a new SyncSet protecting the given set, and using the given ReadWriteLock to control reader and writer methods. -
SyncSet
-
-
Method Details
-
hashCode
-
equals
-