Record Class FSTUtil.Path<T>
java.lang.Object
java.lang.Record
org.apache.lucene.search.suggest.analyzing.FSTUtil.Path<T>
- Record Components:
state- Node in the automaton where path ends:fstNode- Node in the FST where path ends:output- Output of the path so far:input- Input of the path so far:
- Enclosing class:
FSTUtil
public static record FSTUtil.Path<T>(int state, FST.Arc<T> fstNode, T output, IntsRefBuilder input)
extends Record
Holds a pair (automaton, fst) of states and accumulated output in the intersected machine.
-
Constructor Summary
ConstructorsConstructorDescriptionPath(int state, FST.Arc<T> fstNode, T output, IntsRefBuilder input) Creates an instance of aPathrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fstNode()Returns the value of thefstNoderecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.output()Returns the value of theoutputrecord component.intstate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
state
public int state()Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
fstNode
Returns the value of thefstNoderecord component.- Returns:
- the value of the
fstNoderecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-