Record Class AuditVerificationResult
java.lang.Object
java.lang.Record
org.j7m.middleware.examples.regulated.AuditVerificationResult
- Record Components:
valid- whether the local chain verifiessequenceCount- number of audit sequence recordscheckpointHash- checkpoint hash value safe for display
-
Constructor Summary
ConstructorsConstructorDescriptionAuditVerificationResult(boolean valid, int sequenceCount, String checkpointHash) Creates an audit verification result. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckpointHashrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thesequenceCountrecord component.final StringtoString()Returns a string representation of this record class.booleanvalid()Returns the value of thevalidrecord component.
-
Constructor Details
-
AuditVerificationResult
Creates an audit verification result.- Parameters:
valid- validity flagsequenceCount- sequence countcheckpointHash- checkpoint hash
-
-
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. -
valid
-
sequenceCount
public int sequenceCount()Returns the value of thesequenceCountrecord component.- Returns:
- the value of the
sequenceCountrecord component
-
checkpointHash
Returns the value of thecheckpointHashrecord component.- Returns:
- the value of the
checkpointHashrecord component
-