Package org.apache.lucene.util.automaton
Class IntSet
java.lang.Object
org.apache.lucene.util.automaton.IntSet
- Direct Known Subclasses:
FrozenIntSet
,StateSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
(package private) abstract int[]
getArray()
Return an array representation of this int set's values.int
hashCode()
(package private) abstract long
(package private) abstract int
size()
Guaranteed to be less than or equal to the length of the array returned bygetArray()
.
-
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 bygetArray()
.- Returns:
- The number of values in this set.
-
longHashCode
abstract long longHashCode() -
hashCode
public int hashCode() -
equals
-