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