Record Class MethodDescriptor
java.lang.Object
java.lang.Record
org.j7m.middleware.transport.api.MethodDescriptor
- Record Components:
declaringInterfaceName- fully qualified declaring interface namemethodName- Java method nameparameterTypeNames- ordered parameter type namesreturnTypeName- return type namesignatureHash- deterministic signature hash
- All Implemented Interfaces:
Serializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeclaringInterfaceNamerecord component.final booleanIndicates whether some other object is "equal to" this one.static MethodDescriptorfromMethod(Method method) Builds a descriptor from a reflection method.final inthashCode()Returns a hash code value for this object.Returns the value of themethodNamerecord component.Returns the value of theparameterTypeNamesrecord component.Returns the value of thereturnTypeNamerecord component.Returns the value of thesignatureHashrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodDescriptor
-
-
Method Details
-
fromMethod
Builds a descriptor from a reflection method.- Parameters:
method- Java method- Returns:
- method descriptor
-
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). -
declaringInterfaceName
Returns the value of thedeclaringInterfaceNamerecord component.- Returns:
- the value of the
declaringInterfaceNamerecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
parameterTypeNames
Returns the value of theparameterTypeNamesrecord component.- Returns:
- the value of the
parameterTypeNamesrecord component
-
returnTypeName
Returns the value of thereturnTypeNamerecord component.- Returns:
- the value of the
returnTypeNamerecord component
-
signatureHash
Returns the value of thesignatureHashrecord component.- Returns:
- the value of the
signatureHashrecord component
-