Record Class InvalidJavadocTag
java.lang.Object
java.lang.Record
com.puppycrawl.tools.checkstyle.checks.javadoc.InvalidJavadocTag
- Record Components:
line
- the line of the invalid tagcol
- the column of the invalid tagname
- the name of the invalid tag
Value object for storing data about an invalid Javadoc tag.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInvalidJavadocTag
(int line, int col, String name) Creates an instance of aInvalidJavadocTag
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
col()
Returns the value of thecol
record component.final boolean
Indicates whether some other object is "equal to" this one.int
getCol()
Legacy getter for col (backward compatibility).int
getLine()
Legacy getter for line (backward compatibility).getName()
Legacy getter for name (backward compatibility).final int
hashCode()
Returns a hash code value for this object.int
line()
Returns the value of theline
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
getLine
Legacy getter for line (backward compatibility). -
getCol
Legacy getter for col (backward compatibility). -
getName
Legacy getter for name (backward compatibility). -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
line
Returns the value of theline
record component.- Returns:
- the value of the
line
record component
-
col
Returns the value of thecol
record component.- Returns:
- the value of the
col
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-