Record Class PathParser.Location
java.lang.Object
java.lang.Record
io.trino.sql.jsonpath.PathParser.Location
- Enclosing class:
PathParser
-
Constructor Summary
ConstructorsConstructorDescriptionLocation(int line, int column) Creates an instance of aLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolumn()Returns the value of thecolumnrecord component.final 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Location
public Location(int line, int column) Creates an instance of aLocationrecord class.- Parameters:
line- the value for thelinerecord componentcolumn- the value for thecolumnrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
line
public int line()Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
column
public int column()Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-