Record Class TagParser.Point
java.lang.Object
java.lang.Record
com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser.Point
- Record Components:
lineNo- Line number.columnNo- Column number.
- Enclosing class:
- TagParser
Represents current position in the text.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePoint(int lineNo, int columnNo) Creates newPointinstance. -
Method Summary
Modifier and TypeMethodDescriptionintcolumnNo()Returns the value of thecolumnNorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlineNo()Returns the value of thelineNorecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Point
Creates newPointinstance.- Parameters:
lineNo- line numbercolumnNo- column number
-
-
Method Details
-
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
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
lineNo
Returns the value of thelineNorecord component.- Returns:
- the value of the
lineNorecord component
-
columnNo
Returns the value of thecolumnNorecord component.- Returns:
- the value of the
columnNorecord component
-