Class FrozenIntSet

java.lang.Object
org.apache.lucene.util.automaton.IntSet
org.apache.lucene.util.automaton.FrozenIntSet

final class FrozenIntSet extends IntSet
  • Field Summary

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

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

    Modifier and Type
    Method
    Description
    (package private) int[]
    Return an array representation of this int set's values.
    (package private) long
     
    (package private) int
    Guaranteed to be less than or equal to the length of the array returned by IntSet.getArray().
     

    Methods inherited from class org.apache.lucene.util.automaton.IntSet

    equals, hashCode

    Methods inherited from class java.lang.Object

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

    • values

      final int[] values
    • state

      final int state
    • hashCode

      final long hashCode
  • Constructor Details

    • FrozenIntSet

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

    • 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.
    • longHashCode

      long longHashCode()
      Specified by:
      longHashCode in class IntSet
    • toString

      public String toString()
      Overrides:
      toString in class Object