Module org.apache.lucene.core
Package org.apache.lucene.analysis
Record Class AutomatonToTokenStream.EdgeToken
java.lang.Object
java.lang.Record
org.apache.lucene.analysis.AutomatonToTokenStream.EdgeToken
- Enclosing class:
AutomatonToTokenStream
Edge between position nodes. These edges will be output as tokens in the TokenStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedestinationrecord component.private final intThe field for thevaluerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEdgeToken(int destination, int value) Creates an instance of aEdgeTokenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.
-
Field Details
-
destination
private final int destinationThe field for thedestinationrecord component. -
value
private final int valueThe field for thevaluerecord component.
-
-
Constructor Details
-
EdgeToken
private EdgeToken(int destination, int value) Creates an instance of aEdgeTokenrecord class.- Parameters:
destination- the value for thedestinationrecord componentvalue- the value for thevaluerecord component
-
-
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. All components in this record class are compared with '=='. -
destination
public int destination()Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
value
public int value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-