Record Class ApiDiff.ClassMemberKey
java.lang.Object
java.lang.Record
com.google.errorprone.bugpatterns.apidiff.ApiDiff.ClassMemberKey
- Record Components:
identifier- The simple name of the member.descriptor- The JVMS 4.3 member descriptor.
- Enclosing class:
ApiDiff
-
Constructor Summary
ConstructorsConstructorDescriptionClassMemberKey(String identifier, String descriptor) Creates an instance of aClassMemberKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiDiff.ClassMemberKeyReturns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassMemberKey
Creates an instance of aClassMemberKeyrecord class.- Parameters:
identifier- the value for theidentifierrecord componentdescriptor- the value for thedescriptorrecord component
-
-
Method Details
-
create
-
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). -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-