Class FrozenIntSet


  • final class FrozenIntSet
    extends IntSet
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long hashCode  
      (package private) int state  
      (package private) int[] values  
    • Constructor Summary

      Constructors 
      Constructor Description
      FrozenIntSet​(int[] values, long hashCode, int state)  
    • Method Summary

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

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • values

        final int[] values
      • state

        final int state
      • hashCode

        final long hashCode
    • Constructor Detail

      • FrozenIntSet

        FrozenIntSet​(int[] values,
                     long hashCode,
                     int state)
    • Method Detail

      • getArray

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

        int size()
        Description copied from class: IntSet
        Guaranteed to be less than or equal to the length of the array returned by IntSet.getArray().
        Specified by:
        size in class IntSet
        Returns:
        The number of values in this set.
      • toString

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