V
- Value Typepublic class ReadWriteLockSet<V>
extends java.lang.Object
implements java.util.Set<V>
Constructor and Description |
---|
ReadWriteLockSet()
Constructs a ReadWriteLockSet using a TreeSet with a non-fair lock
|
ReadWriteLockSet(boolean treeSet,
boolean fairReadWriteLock)
Constructs a ReadWriteLockSet
|
ReadWriteLockSet(boolean fairReadWriteLock,
int initialHashCapacity)
Constructs a ReadWriteLockSet using a HashSet
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(V arg0) |
boolean |
addAll(java.util.Collection<? extends V> arg0) |
void |
clear() |
boolean |
contains(java.lang.Object arg0) |
boolean |
containsAll(java.util.Collection<?> arg0) |
boolean |
isEmpty() |
java.util.Iterator<V> |
iterator() |
boolean |
remove(java.lang.Object object) |
boolean |
removeAll(java.util.Collection<?> objects) |
boolean |
retainAll(java.util.Collection<?> objects) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public ReadWriteLockSet()
public ReadWriteLockSet(boolean treeSet, boolean fairReadWriteLock)
treeSet
- True with should use a TreeSet, otherwise uses a HashSetfairReadWriteLock
- True if is a fair lock, otherwise is non-fairpublic ReadWriteLockSet(boolean fairReadWriteLock, int initialHashCapacity)
fairReadWriteLock
- True if is a fair lock, otherwise is non-fairinitialHashCapacity
- The initial HashSet capacitypublic void clear()
public boolean add(V arg0)
public boolean addAll(java.util.Collection<? extends V> arg0)
public boolean contains(java.lang.Object arg0)
public boolean containsAll(java.util.Collection<?> arg0)
public boolean isEmpty()
public java.util.Iterator<V> iterator()
public boolean remove(java.lang.Object object)
public boolean removeAll(java.util.Collection<?> objects)
public boolean retainAll(java.util.Collection<?> objects)
public int size()
public java.lang.Object[] toArray()