T - 所涉及对象的类型public class SetWithLock<T> extends ObjWithLock<Set<T>>
| Constructor and Description |
|---|
SetWithLock(Set<T> set)
构造对象
|
SetWithLock(Set<T> set,
ReentrantReadWriteLock lock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T t)
构造对象
|
void |
clear()
清空对象
|
boolean |
remove(T t)
删除对象
|
int |
size()
对象大小
|
public SetWithLock(Set<T> set, ReentrantReadWriteLock lock)
set - 对象lock - 读写锁Copyright © 2021. All rights reserved.