Record Class RedactionSummary
java.lang.Object
java.lang.Record
com.shaft.capture.model.RedactionSummary
- Record Components:
redactedValueCount- number of values replaced by referencesremovedAttributeCount- number of sensitive attributes removedredactedUrlParameterCount- number of URL parameters redactedappliedRules- names of deterministic rules that were applied
-
Constructor Summary
ConstructorsConstructorDescriptionRedactionSummary(int redactedValueCount, int removedAttributeCount, int redactedUrlParameterCount, Set<String> appliedRules) Creates a safe immutable summary. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliedRulesrecord component.static RedactionSummaryempty()Returns an empty summary.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.merge(RedactionSummary other) Combines two safe summaries.intReturns the value of theredactedUrlParameterCountrecord component.intReturns the value of theredactedValueCountrecord component.intReturns the value of theremovedAttributeCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RedactionSummary
-
-
Method Details
-
empty
-
merge
Combines two safe summaries.- Parameters:
other- summary to add- Returns:
- combined summary
-
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. -
redactedValueCount
public int redactedValueCount()Returns the value of theredactedValueCountrecord component.- Returns:
- the value of the
redactedValueCountrecord component
-
removedAttributeCount
public int removedAttributeCount()Returns the value of theremovedAttributeCountrecord component.- Returns:
- the value of the
removedAttributeCountrecord component
-
redactedUrlParameterCount
public int redactedUrlParameterCount()Returns the value of theredactedUrlParameterCountrecord component.- Returns:
- the value of the
redactedUrlParameterCountrecord component
-
appliedRules
Returns the value of theappliedRulesrecord component.- Returns:
- the value of the
appliedRulesrecord component
-