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