Class IntSet

java.lang.Object
org.apache.lucene.util.automaton.IntSet
Direct Known Subclasses:
FrozenIntSet, StateSet

abstract class IntSet extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    (package private) abstract int[]
    Return an array representation of this int set's values.
    int
     
    (package private) abstract long
     
    (package private) abstract int
    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 Details

    • IntSet

      IntSet()
  • Method Details

    • 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 Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object