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
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
public final int 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). -
validTags
Returns the value of thevalidTagsrecord component.- Returns:
- the value of the
validTagsrecord component
-
invalidTags
Returns the value of theinvalidTagsrecord component.- Returns:
- the value of the
invalidTagsrecord component
-