Package org.openjdk.jol.util
Class SimpleIdentityHashSet
java.lang.Object
org.openjdk.jol.util.SimpleIdentityHashSet
Identity hash set implementation optimized for JOL uses. Cuts corners where it can.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private int
private Object[]
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MINIMUM_CAPACITY
private static final int MINIMUM_CAPACITY- See Also:
-
MAXIMUM_CAPACITY
private static final int MAXIMUM_CAPACITY- See Also:
-
table
-
size
private int size
-
-
Constructor Details
-
SimpleIdentityHashSet
public SimpleIdentityHashSet()
-
-
Method Details
-
capacity
private static int capacity(int expectedMaxSize) -
hash
-
nextIndex
private static int nextIndex(int i, int len) -
add
-
resize
private boolean resize(int newCapacity)
-