public class SyncSet extends SyncCollection implements Set
SyncCollection
SyncCollection.SyncCollectionIterator
c_, rd_, syncFailures_, wr_
Constructor and Description |
---|
SyncSet(Set set,
ReadWriteLock rwl)
Create a new SyncSet protecting the given set,
and using the given ReadWriteLock to control reader and writer methods.
|
SyncSet(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(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(Object o) |
int |
hashCode() |
add, addAll, afterRead, beforeRead, clear, contains, containsAll, isEmpty, iterator, readerSync, remove, removeAll, retainAll, size, syncFailures, toArray, toArray, unprotectedIterator, writerSync
public SyncSet(Set set, Sync sync)
public SyncSet(Set set, ReadWriteLock rwl)
Copyright © 2012-2013 Adele Team | LIG. All Rights Reserved.