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 int
The field for thedestination
record component.private final int
The field for thevalue
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
EdgeToken
(int destination, int value) Creates an instance of aEdgeToken
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thedestination
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.int
value()
Returns the value of thevalue
record component.
-
Field Details
-
destination
private final int destinationThe field for thedestination
record component. -
value
private final int valueThe field for thevalue
record component.
-
-
Constructor Details
-
EdgeToken
private EdgeToken(int destination, int value) Creates an instance of aEdgeToken
record class.- Parameters:
destination
- the value for thedestination
record componentvalue
- the value for thevalue
record 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 thedestination
record component.- Returns:
- the value of the
destination
record component
-
value
public int value()Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-