Record Class JavadocTags
java.lang.Object
java.lang.Record
com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTags
- Record Components:
validTags- valid tagsinvalidTags- invalid tags
public record JavadocTags(List<JavadocTag> validTags, List<InvalidJavadocTag> invalidTags)
extends Record
Value object for combining the list of valid validTags with information
about invalid validTags encountered in a certain Javadoc comment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<InvalidJavadocTag> The field for theinvalidTagsrecord component.private final List<JavadocTag> The field for thevalidTagsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionJavadocTags(List<JavadocTag> validTags, List<InvalidJavadocTag> invalidTags) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinvalidTagsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidTagsrecord component.
-
Field Details
-
validTags
The field for thevalidTagsrecord component. -
invalidTags
The field for theinvalidTagsrecord component.
-
-
Constructor Details
-
JavadocTags
Creates an instance.
-
-
Method Details
-
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). -
validTags
-
invalidTags
Returns the value of theinvalidTagsrecord component.- Returns:
- the value of the
invalidTagsrecord component
-