Class IntSet

    • Constructor Summary

      Constructors 
      Constructor Description
      IntSet()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      (package private) abstract int[] getArray()
      Return an array representation of this int set's values.
      int hashCode()  
      (package private) abstract long longHashCode()  
      (package private) abstract int size()
      Guaranteed to be less than or equal to the length of the array returned by getArray().
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IntSet

        IntSet()
    • Method Detail

      • getArray

        abstract int[] getArray()
        Return an array representation of this int set's values. Values are valid for indices [0, size()). If this is a mutable int set, then changes to the set are not guaranteed to be visible in this array.
        Returns:
        an array containing the values for this set, guaranteed to be at least size() elements
      • size

        abstract int size()
        Guaranteed to be less than or equal to the length of the array returned by getArray().
        Returns:
        The number of values in this set.
      • longHashCode

        abstract long longHashCode()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object