Record Class AnnotationApprovalResult
java.lang.Object
java.lang.Record
org.j7m.middleware.examples.annotation.AnnotationApprovalResult
- Record Components:
invoiceId- public invoice identifierstatus- approval status
Safe result returned by the annotation-first approval examples.
The record is immutable and contains only public identifiers and status text. Sensitive request values, such as invoice amounts or secret configuration values, are deliberately excluded so demo output and status summaries remain safe to print.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationApprovalResult(String invoiceId, String status) Creates a safe approval result. -
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 theinvoiceIdrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnnotationApprovalResult
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
invoiceId
-
status
-