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) long
longHashCode()
(package private) int
size()
Guaranteed to be less than or equal to the length of the array returned byIntSet.getArray()
.java.lang.String
toString()
-
-
-
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 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:IntSet
Guaranteed to be less than or equal to the length of the array returned byIntSet.getArray()
.
-
longHashCode
long longHashCode()
- Specified by:
longHashCode
in classIntSet
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-