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