Module org.neo4j.driver
Record Class InternalInputPosition
java.lang.Object
java.lang.Record
org.neo4j.driver.internal.summary.InternalInputPosition
- All Implemented Interfaces:
InputPosition
public record InternalInputPosition(int offset, int line, int column)
extends Record
implements InputPosition
An input position refers to a specific point in a query string.
-
Constructor Summary
ConstructorsConstructorDescriptionInternalInputPosition(int offset, int line, int column) Creating a position from and offset, line number and a column number. -
Method Summary
Modifier and TypeMethodDescriptionintcolumn()Returns the value of thecolumnrecord component.booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.intoffset()Returns the value of theoffsetrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
InternalInputPosition
public InternalInputPosition(int offset, int line, int column) Creating a position from and offset, line number and a column number.- Parameters:
offset- the offset from the start of the string, starting from 0.line- the line number, starting from 1.column- the column number, starting from 1.
-
-
Method Details
-
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. All components in this record class are compared with '=='. -
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. -
offset
public int offset()Returns the value of theoffsetrecord component.- Specified by:
offsetin interfaceInputPosition- Returns:
- the value of the
offsetrecord component
-
line
public int line()Returns the value of thelinerecord component.- Specified by:
linein interfaceInputPosition- Returns:
- the value of the
linerecord component
-
column
public int column()Returns the value of thecolumnrecord component.- Specified by:
columnin interfaceInputPosition- Returns:
- the value of the
columnrecord component
-