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
-
Constructor Details
-
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
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-