Record Class CapturePrivacyClassifier.ClassifiedUpload
java.lang.Object
java.lang.Record
com.shaft.capture.privacy.CapturePrivacyClassifier.ClassifiedUpload
- Record Components:
reference- logical upload referencesafeFileName- sanitized basenamemediaType- normalized media typesizeBytes- file sizesummary- safe summary
- Enclosing class:
CapturePrivacyClassifier
public static record CapturePrivacyClassifier.ClassifiedUpload(ExternalTestDataReference reference, String safeFileName, String mediaType, long sizeBytes, RedactionSummary summary)
extends Record
Safe upload reference and metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionClassifiedUpload(ExternalTestDataReference reference, String safeFileName, String mediaType, long sizeBytes, RedactionSummary summary) Creates safe upload 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.Returns the value of themediaTyperecord component.Returns the value of thereferencerecord component.Returns the value of thesafeFileNamerecord component.longReturns the value of thesizeBytesrecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassifiedUpload
public ClassifiedUpload(ExternalTestDataReference reference, String safeFileName, String mediaType, long sizeBytes, RedactionSummary summary) Creates safe upload metadata.
-
-
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. -
reference
-
safeFileName
Returns the value of thesafeFileNamerecord component.- Returns:
- the value of the
safeFileNamerecord component
-
mediaType
-
sizeBytes
-
summary
-