Package org.miaixz.bus.core.center.set
Class ConcurrentLinkedHashSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.miaixz.bus.core.center.set.SetFromMap<E>
org.miaixz.bus.core.center.set.ConcurrentLinkedHashSet<E>
- Type Parameters:
E- 元素类型
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,Set<E>
通过
ConcurrentLinkedHashMap实现的线程安全HashSet- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Constructor Summary
ConstructorsConstructorDescription构造ConcurrentLinkedHashSet(int initialCapacity) 构造 触发因子为默认的0.75ConcurrentLinkedHashSet(int initialCapacity, int concurrencyLevel) 构造ConcurrentLinkedHashSet(Iterable<E> iter) 从已有集合中构造 -
Method Summary
Methods inherited from class org.miaixz.bus.core.center.set.SetFromMap
add, clear, contains, containsAll, equals, forEach, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toStringMethods inherited from class java.util.AbstractCollection
addAllMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
toArray
-
Constructor Details
-
ConcurrentLinkedHashSet
public ConcurrentLinkedHashSet()构造 -
ConcurrentLinkedHashSet
public ConcurrentLinkedHashSet(int initialCapacity) 构造 触发因子为默认的0.75- Parameters:
initialCapacity- 初始大小
-
ConcurrentLinkedHashSet
public ConcurrentLinkedHashSet(int initialCapacity, int concurrencyLevel) 构造- Parameters:
initialCapacity- 初始大小concurrencyLevel- 线程并发度
-
ConcurrentLinkedHashSet
-