public class ObjectHashSet<T> extends OptimizableHashSet
HashSet with hashSet interface.containsNull, containsZero, DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, DENSE_THRESHOLD, f, isDense, mask, maxFill, n, size, used| 构造器和说明 |
|---|
ObjectHashSet() |
ObjectHashSet(int expected) |
ObjectHashSet(int expected,
float f) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(T t) |
boolean |
contains(T t) |
void |
optimize()
Decide whether to convert to dense mode.
|
addNull, arraySize, containsNull, maxFill, nextPowerOfTwo, realSizepublic ObjectHashSet(int expected,
float f)
public ObjectHashSet(int expected)
public ObjectHashSet()
public boolean add(T t)
public boolean contains(T t)
public void optimize()
OptimizableHashSetoptimize 在类中 OptimizableHashSetCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.