Class LongHashSet

  • All Implemented Interfaces:
    java.io.Serializable

    public final class LongHashSet
    extends java.lang.Object
    implements java.io.Serializable
    Open address hash map with linear probing. Assumes keys are non-negative (uses -1 internally for empty key). Returns 0.0 for keys not in the map.
    Author:
    adampauls
    See Also:
    Serialized Form
    • Constructor Detail

      • LongHashSet

        public LongHashSet()
      • LongHashSet

        public LongHashSet​(int initCapacity_)
    • Method Detail

      • setLoadFactor

        public void setLoadFactor​(double loadFactor)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • put

        public boolean put​(long k)
      • get

        public boolean get​(long k)
      • containsKey

        public boolean containsKey​(long k)
      • isEmpty

        public boolean isEmpty()
      • ensureCapacity

        public void ensureCapacity​(int capacity)
      • size

        public int size()
      • clear

        public void clear()
      • remove

        public void remove​(long k)