Package org.openjdk.jol.util
Class SimpleIdentityHashSet
- java.lang.Object
-
- org.openjdk.jol.util.SimpleIdentityHashSet
-
public final class SimpleIdentityHashSet extends java.lang.Object
Identity hash set implementation optimized for JOL uses. Cuts corners where it can.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
MAXIMUM_CAPACITY
private static int
MINIMUM_CAPACITY
private int
size
private java.lang.Object[]
table
-
Constructor Summary
Constructors Constructor Description SimpleIdentityHashSet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(java.lang.Object o)
private static int
capacity(int expectedMaxSize)
private static int
hash(java.lang.Object x, int length)
private static int
nextIndex(int i, int len)
private boolean
resize(int newCapacity)
-
-
-
Field Detail
-
MINIMUM_CAPACITY
private static final int MINIMUM_CAPACITY
- See Also:
- Constant Field Values
-
MAXIMUM_CAPACITY
private static final int MAXIMUM_CAPACITY
- See Also:
- Constant Field Values
-
table
private java.lang.Object[] table
-
size
private int size
-
-