Package org.openjdk.jol.util
Class SimpleIdentityHashSet
- java.lang.Object
-
- org.openjdk.jol.util.SimpleIdentityHashSet
-
public final class SimpleIdentityHashSet extends java.lang.ObjectIdentity hash set implementation optimized for JOL uses. Cuts corners where it can.
-
-
Field Summary
Fields Modifier and Type Field Description private static intMAXIMUM_CAPACITYprivate static intMINIMUM_CAPACITYprivate intsizeprivate 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 booleanadd(java.lang.Object o)private static intcapacity(int expectedMaxSize)private static inthash(java.lang.Object x, int length)private static intnextIndex(int i, int len)private booleanresize(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
-
-