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

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the endNode record component.
    private final int
    The field for the startNode record component.
    private final AttributeSource.State
    The field for the state record component.
    private final String
    The field for the term record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BufferedOutputToken(AttributeSource.State state, String term, int startNode, int endNode)
    Creates an instance of a BufferedOutputToken record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the endNode record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the startNode record component.
    Returns the value of the state record component.
    Returns the value of the term record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • state

      private final AttributeSource.State state
      The field for the state record component.
    • term

      private final String term
      The field for the term record component.
    • startNode

      private final int startNode
      The field for the startNode record component.
    • endNode

      private final int endNode
      The field for the endNode record component.
  • Constructor Details

    • BufferedOutputToken

      BufferedOutputToken(AttributeSource.State state, String term, int startNode, int endNode)
      Creates an instance of a BufferedOutputToken record class.
      Parameters:
      state - the value for the state record component
      term - the value for the term record component
      startNode - the value for the startNode record component
      endNode - the value for the endNode record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • state

      public AttributeSource.State state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • term

      public String term()
      Returns the value of the term record component.
      Returns:
      the value of the term record component
    • startNode

      public int startNode()
      Returns the value of the startNode record component.
      Returns:
      the value of the startNode record component
    • endNode

      public int endNode()
      Returns the value of the endNode record component.
      Returns:
      the value of the endNode record component