public class LongHashSet extends OptimizableHashSet
containsNull, containsZero, DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, DENSE_THRESHOLD, f, isDense, mask, maxFill, n, size, used| Constructor and Description |
|---|
LongHashSet() |
LongHashSet(int expected) |
LongHashSet(int expected,
float f) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long k) |
boolean |
contains(long k) |
void |
optimize()
Decide whether to convert to dense mode.
|
addNull, arraySize, containsNull, maxFill, nextPowerOfTwo, realSizepublic LongHashSet(int expected,
float f)
public LongHashSet(int expected)
public LongHashSet()
public boolean add(long k)
public boolean contains(long k)
public void optimize()
OptimizableHashSetoptimize in class OptimizableHashSetCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.