public class SetWithLock<T> extends ObjWithLock<Set<T>>
SetWithLock(Set<T> set)
SetWithLock(Set<T> set, ReentrantReadWriteLock lock)
boolean
add(T t)
void
clear()
remove(T t)
int
size()
getLock, getObj, readLock, setObj, writeLock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public SetWithLock(Set<T> set)
set
public SetWithLock(Set<T> set, ReentrantReadWriteLock lock)
lock
public boolean add(T t)
t
public void clear()
public boolean remove(T t)
public int size()
Copyright © 2018. All rights reserved.