Record Class HealingReport.PrivacyMetadata
java.lang.Object
java.lang.Record
com.shaft.heal.model.HealingReport.PrivacyMetadata
- Record Components:
policy- evidence policy summaryredactedFields- number of redacted fieldsremoteEvidenceSent- whether evidence left the local process
- Enclosing class:
HealingReport
-
Constructor Summary
ConstructorsConstructorDescriptionPrivacyMetadata(String policy, int redactedFields, boolean remoteEvidenceSent) Creates safe privacy metadata. -
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.policy()Returns the value of thepolicyrecord component.intReturns the value of theredactedFieldsrecord component.booleanReturns the value of theremoteEvidenceSentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PrivacyMetadata
Creates safe privacy metadata.
-
-
Method Details
-
minimized
- Returns:
- metadata for whitelist-only local evidence
-
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. -
policy
-
redactedFields
public int redactedFields()Returns the value of theredactedFieldsrecord component.- Returns:
- the value of the
redactedFieldsrecord component
-
remoteEvidenceSent
public boolean remoteEvidenceSent()Returns the value of theremoteEvidenceSentrecord component.- Returns:
- the value of the
remoteEvidenceSentrecord component
-