Class SimpleIdentityHashSet

java.lang.Object
org.openjdk.jol.util.SimpleIdentityHashSet

public final class SimpleIdentityHashSet extends Object
Identity hash set implementation optimized for JOL uses. Cuts corners where it can.
  • Field Details

    • MINIMUM_CAPACITY

      private static final int MINIMUM_CAPACITY
      See Also:
    • MAXIMUM_CAPACITY

      private static final int MAXIMUM_CAPACITY
      See Also:
    • table

      private Object[] table
    • size

      private int size
  • Constructor Details

    • SimpleIdentityHashSet

      public SimpleIdentityHashSet()
  • Method Details

    • capacity

      private static int capacity(int expectedMaxSize)
    • hash

      private static int hash(Object x, int length)
    • nextIndex

      private static int nextIndex(int i, int len)
    • add

      public boolean add(Object o)
    • resize

      private boolean resize(int newCapacity)