Class OpenHashSet<T>
- java.lang.Object
-
- io.reactivex.rxjava3.internal.util.OpenHashSet<T>
-
- Type Parameters:
T- the element type
public final class OpenHashSet<T> extends java.lang.ObjectA simple open hash set with add, remove and clear capabilities only.Doesn't support nor checks for
nulls.
-
-
Constructor Summary
Constructors Constructor Description OpenHashSet()OpenHashSet(int capacity)Creates an OpenHashSet with the initial capacity and load factor of 0.75f.OpenHashSet(int capacity, float loadFactor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T value)java.lang.Object[]keys()(package private) static intmix(int x)(package private) voidrehash()booleanremove(T value)(package private) booleanremoveEntry(int pos, T[] a, int m)intsize()
-
-
-
Field Detail
-
INT_PHI
private static final int INT_PHI
- See Also:
- Constant Field Values
-
loadFactor
final float loadFactor
-
mask
int mask
-
size
int size
-
maxSize
int maxSize
-
keys
T[] keys
-
-