- java.lang.Object
-
- org.apache.lucene.util.automaton.IntSet
-
- Direct Known Subclasses:
FrozenIntSet
,StateSet
abstract class IntSet extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IntSet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
(package private) abstract int[]
getArray()
Return an array representation of this int set's values.int
hashCode()
(package private) abstract long
longHashCode()
(package private) abstract int
size()
Guaranteed to be less than or equal to the length of the array returned bygetArray()
.
-
-
-
Method Detail
-
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()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-