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 int
The field for theendNode
record component.private final int
The field for thestartNode
record component.private final AttributeSource.State
The field for thestate
record component.private final String
The field for theterm
record component. -
Constructor Summary
ConstructorsConstructorDescriptionBufferedOutputToken
(AttributeSource.State state, String term, int startNode, int endNode) Creates an instance of aBufferedOutputToken
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
endNode()
Returns the value of theendNode
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.int
Returns the value of thestartNode
record component.state()
Returns the value of thestate
record component.term()
Returns the value of theterm
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
state
The field for thestate
record component. -
term
The field for theterm
record component. -
startNode
private final int startNodeThe field for thestartNode
record component. -
endNode
private final int endNodeThe field for theendNode
record component.
-
-
Constructor Details
-
BufferedOutputToken
BufferedOutputToken(AttributeSource.State state, String term, int startNode, int endNode) Creates an instance of aBufferedOutputToken
record class.- Parameters:
state
- the value for thestate
record componentterm
- the value for theterm
record componentstartNode
- the value for thestartNode
record componentendNode
- the value for theendNode
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-
term
Returns the value of theterm
record component.- Returns:
- the value of the
term
record component
-
startNode
public int startNode()Returns the value of thestartNode
record component.- Returns:
- the value of the
startNode
record component
-
endNode
public int endNode()Returns the value of theendNode
record component.- Returns:
- the value of the
endNode
record component
-