Class RootPosition

java.lang.Object
org.variantsync.boosting.position.Position
org.variantsync.boosting.position.RootPosition
All Implemented Interfaces:
Serializable

public class RootPosition extends Position
Represents the root position in a tree.
See Also:
  • Field Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Checks if the given object is equal to this RootPosition instance.
      Specified by:
      equals in class Position
      Parameters:
      o - The object to compare with this RootPosition instance.
      Returns:
      true if the given object is an instance of RootPosition, false otherwise.
    • serializedPosition

      public String[] serializedPosition()
      Returns the serialized representation of the root position.
      Specified by:
      serializedPosition in class Position
      Returns:
      An array containing the value of the root position.
    • filePath

      public Path filePath()
      Returns the file path associated with the root position.
      Specified by:
      filePath in class Position
      Returns:
      null, as the root position does not have a file path.
    • lineNumber

      public int lineNumber()
      Returns the line number associated with the root position.
      Specified by:
      lineNumber in class Position
      Returns:
      -1, as the root position does not have a line number.
    • columnNumber

      public int columnNumber()
      Returns the column number associated with the root position.
      Specified by:
      columnNumber in class Position
      Returns:
      -1, as the root position does not have a column number.
    • hashCode

      public int hashCode()
      Returns the hash code value for the root position.
      Specified by:
      hashCode in class Position
      Returns:
      The hash code value based on the value of the root position.