Class IdentityHashSet

    • Field Detail

      • entries

        protected transient org.eclipse.persistence.internal.helper.IdentityHashSet.Entry[] entries
      • count

        protected transient int count
      • threshold

        protected int threshold
      • loadFactor

        protected float loadFactor
    • Constructor Detail

      • IdentityHashSet

        public IdentityHashSet​(int initialCapacity,
                               float loadFactor)
        Constructs a new IdentityHashSet with the given initial capacity and the given loadFactor.
        Parameters:
        initialCapacity - the initial capacity of the IdentityHashSet.
        loadFactor - the loadFactor of the IdentityHashSet.
        Throws:
        IllegalArgumentException - if the initial capacity is less than zero, or if the loadFactor is nonpositive.
      • IdentityHashSet

        public IdentityHashSet​(int initialCapacity)
        Constructs a new IdentityHashSet with the given initial capacity and a default loadFactor of 0.75.
        Parameters:
        initialCapacity - the initial capacity of the IdentityHashSet.
        Throws:
        IllegalArgumentException - if the initial capacity is less than zero.
      • IdentityHashSet

        public IdentityHashSet()
        Constructs a new IdentityHashSet with a default initial capacity of 32 and a loadfactor of 0.75.
      • IdentityHashSet

        public IdentityHashSet​(Collection c)
        Constructs a new IdentityHashSet with the same contents as the given Collection. The new IdentityHashSet is created with an initial capacity sufficient to hold the elements of the given Collection.
        Parameters:
        c - the Collection whose contents are to be placed in the new IdentityHashSet.