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, realSize
public LongHashSet(int expected, float f)
public LongHashSet(int expected)
public LongHashSet()
public boolean add(long k)
public boolean contains(long k)
public void optimize()
OptimizableHashSet
optimize
in class OptimizableHashSet
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.