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