Package org.sonar.java.model
Record Class LineColumnConverter.Pos
java.lang.Object
java.lang.Record
org.sonar.java.model.LineColumnConverter.Pos
- Enclosing class:
LineColumnConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thecolumnOffset
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
line()
Returns the value of theline
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Pos
public Pos(int line, int columnOffset) Creates an instance of aPos
record class.- Parameters:
line
- the value for theline
record componentcolumnOffset
- the value for thecolumnOffset
record 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 '=='. -
line
public int line()Returns the value of theline
record component.- Returns:
- the value of the
line
record component
-
columnOffset
public int columnOffset()Returns the value of thecolumnOffset
record component.- Returns:
- the value of the
columnOffset
record component
-