Record Class EvidenceBundle
java.lang.Object
java.lang.Record
com.shaft.doctor.model.EvidenceBundle
- Record Components:
schemaVersion- evidence schema versionbundleId- stable content-derived identifierevidence- retained evidence in deterministic orderredaction- safe redaction summarymetadata- portable environment-independent metadata
public record EvidenceBundle(String schemaVersion, String bundleId, List<EvidenceItem> evidence, RedactionSummary redaction, Map<String,String> metadata)
extends Record
Versioned portable evidence bundle.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEvidenceBundle(String schemaVersion, String bundleId, List<EvidenceItem> evidence, RedactionSummary redaction, Map<String, String> metadata) Creates a validated immutable bundle. -
Method Summary
Modifier and TypeMethodDescriptionbundleId()Returns the value of thebundleIdrecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.Returns the value of theredactionrecord component.Returns the value of theschemaVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CURRENT_SCHEMA_VERSION
-
-
Constructor Details
-
EvidenceBundle
public EvidenceBundle(String schemaVersion, String bundleId, List<EvidenceItem> evidence, RedactionSummary redaction, Map<String, String> metadata) Creates a validated immutable bundle.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
bundleId
-
evidence
-
redaction
-
metadata
-