Record Class ManagedMethod

java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ManagedMethod
Record Components:
declaringType - declaring binary type name
name - method name
parameterTypes - ordered erased binary names, including JVM array names
returnType - erased binary return name

public record ManagedMethod(String declaringType, String name, List<String> parameterTypes, String returnType) extends Record
Internal component Java method signature emitted in a versioned component index. The index format version is not a service contract version. This record alone is not a wire identity: bind it to an explicit contract ID and contract version before wire or durable use. The A00 preflight Report supplies that envelope; managed hosting supplies verified export metadata.
  • Constructor Details

    • ManagedMethod

      public ManagedMethod(String declaringType, String name, List<String> parameterTypes, String returnType)
      Validates bounded immutable signature metadata.
      Parameters:
      declaringType - nonblank binary name
      name - nonblank method name
      parameterTypes - at most64 nonblank binary names
      returnType - nonblank return name
      Throws:
      IllegalArgumentException - for malformed metadata
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • declaringType

      public String declaringType()
      Returns the value of the declaringType record component.
      Returns:
      the value of the declaringType record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • parameterTypes

      public List<String> parameterTypes()
      Returns the value of the parameterTypes record component.
      Returns:
      the value of the parameterTypes record component
    • returnType

      public String returnType()
      Returns the value of the returnType record component.
      Returns:
      the value of the returnType record component