Record Class SynonymGraphFilter.BufferedOutputToken
java.lang.Object
java.lang.Record
org.apache.lucene.analysis.synonym.SynonymGraphFilter.BufferedOutputToken
- Record Components:
state- Non-null if this was an incoming token:
- Enclosing class:
SynonymGraphFilter
static record SynonymGraphFilter.BufferedOutputToken(AttributeSource.State state, String term, int startNode, int endNode)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theendNoderecord component.private final intThe field for thestartNoderecord component.private final AttributeSource.StateThe field for thestaterecord component.private final StringThe field for thetermrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBufferedOutputToken(AttributeSource.State state, String term, int startNode, int endNode) Creates an instance of aBufferedOutputTokenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintendNode()Returns the value of theendNoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thestartNoderecord component.state()Returns the value of thestaterecord component.term()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
state
The field for thestaterecord component. -
term
The field for thetermrecord component. -
startNode
private final int startNodeThe field for thestartNoderecord component. -
endNode
private final int endNodeThe field for theendNoderecord component.
-
-
Constructor Details
-
BufferedOutputToken
BufferedOutputToken(AttributeSource.State state, String term, int startNode, int endNode) Creates an instance of aBufferedOutputTokenrecord class.- Parameters:
state- the value for thestaterecord componentterm- the value for thetermrecord componentstartNode- the value for thestartNoderecord componentendNode- the value for theendNoderecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
term
Returns the value of thetermrecord component.- Returns:
- the value of the
termrecord component
-
startNode
public int startNode()Returns the value of thestartNoderecord component.- Returns:
- the value of the
startNoderecord component
-
endNode
public int endNode()Returns the value of theendNoderecord component.- Returns:
- the value of the
endNoderecord component
-