Record Class ClassifiedValue
java.lang.Object
java.lang.Record
com.shaft.capture.privacy.ClassifiedValue
- Record Components:
reference- reference stored in the sessionexternalizedValue- ordinary value written only to external test data, or null for secretssummary- safe redaction summary
public record ClassifiedValue(ExternalTestDataReference reference, String externalizedValue, RedactionSummary summary)
extends Record
Privacy-classified value ready for safe session and data-file handling.
-
Constructor Summary
ConstructorsConstructorDescriptionClassifiedValue(ExternalTestDataReference reference, String externalizedValue, RedactionSummary summary) Creates a classified value. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalizedValuerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns whether an ordinary value should be written to external test data.Returns the value of thereferencerecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassifiedValue
public ClassifiedValue(ExternalTestDataReference reference, String externalizedValue, RedactionSummary summary) Creates a classified value.
-
-
Method Details
-
persistable
public boolean persistable()Returns whether an ordinary value should be written to external test data.- Returns:
- true when a safe external value is present
-
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). -
reference
-
externalizedValue
Returns the value of theexternalizedValuerecord component.- Returns:
- the value of the
externalizedValuerecord component
-
summary
-