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 aInvalidJavadocTagrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcol()Returns the value of thecolrecord component.final booleanIndicates whether some other object is "equal to" this one.intgetCol()Legacy getter for col (backward compatibility).intgetLine()Legacy getter for line (backward compatibility).getName()Legacy getter for name (backward compatibility).final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.name()Returns the value of thenamerecord component.final StringtoString()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 thelinerecord component.- Returns:
- the value of the
linerecord component
-
col
Returns the value of thecolrecord component.- Returns:
- the value of the
colrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-