E - 元素类型public class ConcurrentLinkedHashSet<E> extends SetFromMap<E>
ConcurrentLinkedHashMap实现的线程安全HashSet| Constructor 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, toStringaddAllpublic ConcurrentLinkedHashSet()
public ConcurrentLinkedHashSet(int initialCapacity)
initialCapacity - 初始大小public ConcurrentLinkedHashSet(int initialCapacity,
int concurrencyLevel)
initialCapacity - 初始大小concurrencyLevel - 线程并发度Copyright © 2025. All rights reserved.