Record Class ManagedServiceContract
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ManagedServiceContract
- Record Components:
id- stable public business contract identityversion- positive public contract versionmethod- full binary Java method signature
Complete public method identity for export, policy and durable integration.
The service version is independent of generated index format and artifact deployment version.
-
Constructor Summary
ConstructorsConstructorDescriptionManagedServiceContract(String id, int version, ManagedMethod method) Validates bounded immutable contract identity. -
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.id()Returns the value of theidrecord component.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
ManagedServiceContract
Validates bounded immutable contract identity.- Parameters:
id- nonblank identity of at most512 characters without control charactersversion- positive versionmethod- complete method signature, never null- Throws:
IllegalArgumentException- for invalid identity or versionNullPointerException- for a null method
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
version
-
method
-