public class SyncSet extends SyncCollection implements java.util.Set
SyncCollectionSyncCollection.SyncCollectionIteratorc_, rd_, syncFailures_, wr_| Constructor and Description |
|---|
SyncSet(java.util.Set set,
ReadWriteLock rwl)
Create a new SyncSet protecting the given set,
and using the given ReadWriteLock to control reader and writer methods.
|
SyncSet(java.util.Set set,
Sync sync)
Create a new SyncSet protecting the given collection,
and using the given sync to control both reader and writer methods.
|
SyncSet(java.util.Set set,
Sync readLock,
Sync writeLock)
Create a new SyncSet protecting the given set,
and using the given pair of locks to control reader and writer methods.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
add, addAll, afterRead, beforeRead, clear, contains, containsAll, isEmpty, iterator, readerSync, remove, removeAll, retainAll, size, syncFailures, toArray, toArray, unprotectedIterator, writerSyncclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitpublic SyncSet(java.util.Set set,
Sync sync)
public SyncSet(java.util.Set set,
ReadWriteLock rwl)
public int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.SethashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in interface java.util.Setequals in class java.lang.Object