Class RootPosition
java.lang.Object
org.variantsync.boosting.position.Position
org.variantsync.boosting.position.RootPosition
- All Implemented Interfaces:
Serializable
Represents the root position in a tree.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the column number associated with the root position.boolean
Checks if the given object is equal to this RootPosition instance.filePath()
Returns the file path associated with the root position.int
hashCode()
Returns the hash code value for the root position.int
Returns the line number associated with the root position.String[]
Returns the serialized representation of the root position.Methods inherited from class org.variantsync.boosting.position.Position
fromSerializedPosition
-
Field Details
-
INSTANCE
-
-
Method Details
-
equals
Checks if the given object is equal to this RootPosition instance. -
serializedPosition
Returns the serialized representation of the root position.- Specified by:
serializedPosition
in classPosition
- Returns:
- An array containing the value of the root position.
-
filePath
Returns the file path associated with the root position. -
lineNumber
public int lineNumber()Returns the line number associated with the root position.- Specified by:
lineNumber
in classPosition
- 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 classPosition
- 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.
-