Record Class AnnotationFileUtil.QualifiedName
java.lang.Object
java.lang.Record
org.checkerframework.framework.stub.AnnotationFileUtil.QualifiedName
- Record Components:
typeName- the part before the last periodmemberName- the part after the last period; the name of a field or method oftypeName
- Enclosing class:
AnnotationFileUtil
public static record AnnotationFileUtil.QualifiedName(@FullyQualifiedName String typeName, String memberName)
extends Record
A qualified name, split into the part before the last period and the part after it.
-
Constructor Summary
ConstructorsConstructorDescriptionQualifiedName(@FullyQualifiedName String typeName, String memberName) Creates an instance of aQualifiedNamerecord class. -
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 thememberNamerecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
QualifiedName
Creates an instance of aQualifiedNamerecord class.- Parameters:
typeName- the value for thetypeNamerecord componentmemberName- the value for thememberNamerecord 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
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). -
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
memberName
Returns the value of thememberNamerecord component.- Returns:
- the value of the
memberNamerecord component
-