E
- 元素类型public class ConcurrentLinkedHashSet<E> extends SetFromMap<E>
ConcurrentLinkedHashMap
实现的线程安全HashSetConstructor and Description |
---|
ConcurrentLinkedHashSet()
构造
|
ConcurrentLinkedHashSet(int initialCapacity)
构造
触发因子为默认的0.75 |
ConcurrentLinkedHashSet(int initialCapacity,
int concurrencyLevel)
构造
|
ConcurrentLinkedHashSet(Iterable<E> iter)
从已有集合中构造
|
add, clear, contains, containsAll, equals, forEach, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toString
addAll
public ConcurrentLinkedHashSet()
public ConcurrentLinkedHashSet(int initialCapacity)
initialCapacity
- 初始大小public ConcurrentLinkedHashSet(int initialCapacity, int concurrencyLevel)
initialCapacity
- 初始大小concurrencyLevel
- 线程并发度Copyright © 2025. All rights reserved.