Record Class UnnecessaryFullyQualifiedTypeCheck.QualifiedTypeReference
java.lang.Object
java.lang.Record
com.puppycrawl.tools.checkstyle.checks.imports.UnnecessaryFullyQualifiedTypeCheck.QualifiedTypeReference
- Record Components:
detailAst- the node where the reference starts, used for loggingfullName- the fully qualified name of the referenced typesimpleName- the simple name of the referenced type
- Enclosing class:
UnnecessaryFullyQualifiedTypeCheck
private static record UnnecessaryFullyQualifiedTypeCheck.QualifiedTypeReference(DetailAST detailAst, String fullName, String simpleName)
extends Record
Holds the details of a fully qualified type reference.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateQualifiedTypeReference(DetailAST detailAst, String fullName, String simpleName) Creates an instance of aQualifiedTypeReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedetailAstrecord component.final booleanIndicates whether some other object is "equal to" this one.fullName()Returns the value of thefullNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesimpleNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
detailAst
The field for thedetailAstrecord component. -
fullName
The field for thefullNamerecord component. -
simpleName
The field for thesimpleNamerecord component.
-
-
Constructor Details
-
QualifiedTypeReference
Creates an instance of aQualifiedTypeReferencerecord class.- Parameters:
detailAst- the value for thedetailAstrecord componentfullName- the value for thefullNamerecord componentsimpleName- the value for thesimpleNamerecord component
-
-
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
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). -
detailAst
Returns the value of thedetailAstrecord component.- Returns:
- the value of the
detailAstrecord component
-
fullName
Returns the value of thefullNamerecord component.- Returns:
- the value of the
fullNamerecord component
-
simpleName
Returns the value of thesimpleNamerecord component.- Returns:
- the value of the
simpleNamerecord component
-