Record Class TagInfo
java.lang.Object
java.lang.Record
com.puppycrawl.tools.checkstyle.checks.javadoc.utils.TagInfo
- Record Components:
name- Name of the tag ("link", "see", etc)value- Value of the tagposition- Position of the tag in the given comment
Value object for storing data about a parsed tag.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTagInfo(String name, String value, LineColumn position) Creates an instance of aTagInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.getName()Legacy getter for tag name (backward compatibility).Legacy getter for tag position (backward compatibility).getValue()Legacy getter for tag value (backward compatibility).final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
name
-
value
-
position
The field for thepositionrecord component.
-
-
Constructor Details
-
TagInfo
-
-
Method Details
-
getName
Legacy getter for tag name (backward compatibility). -
getValue
Legacy getter for tag value (backward compatibility). -
getPosition
Legacy getter for tag position (backward compatibility). -
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 withObjects::equals(Object,Object). -
name
-
value
-
position
-