public class SyncSet extends SyncCollection implements java.util.Set
SyncCollection
SyncCollection.SyncCollectionIterator
c_, 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, writerSync
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
public SyncSet(java.util.Set set, Sync sync)
public SyncSet(java.util.Set set, ReadWriteLock rwl)
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in interface java.util.Set
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in interface java.util.Set
equals
in class java.lang.Object