Package org.apache.lucene.util.automaton
Class FrozenIntSet
- java.lang.Object
-
- org.apache.lucene.util.automaton.IntSet
-
- org.apache.lucene.util.automaton.FrozenIntSet
-
final class FrozenIntSet extends IntSet
-
-
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) longlongHashCode()(package private) intsize()Guaranteed to be less than or equal to the length of the array returned byIntSet.getArray().java.lang.StringtoString()
-
-
-
Method Detail
-
getArray
int[] getArray()
Description copied from class:IntSetReturn 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:
getArrayin classIntSet- Returns:
- an array containing the values for this set, guaranteed to be at least
IntSet.size()elements
-
size
int size()
Description copied from class:IntSetGuaranteed to be less than or equal to the length of the array returned byIntSet.getArray().
-
longHashCode
long longHashCode()
- Specified by:
longHashCodein classIntSet
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-