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