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