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 aPath
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.fstNode()
Returns the value of thefstNode
record component.final int
hashCode()
Returns a hash code value for this object.input()
Returns the value of theinput
record component.output()
Returns the value of theoutput
record component.int
state()
Returns the value of thestate
record component.final String
toString()
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 thestate
record component.- Returns:
- the value of the
state
record component
-
fstNode
Returns the value of thefstNode
record component.- Returns:
- the value of the
fstNode
record component
-
output
Returns the value of theoutput
record component.- Returns:
- the value of the
output
record component
-
input
Returns the value of theinput
record component.- Returns:
- the value of the
input
record component
-