Record Class EvidenceReference
java.lang.Object
java.lang.Record
com.shaft.capture.model.EvidenceReference
- Record Components:
id- stable evidence identifiertype- evidence categoryrelativePath- sanitized relative artifact pathmediaType- media typesha256- optional content digest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSupported evidence categories. -
Constructor Summary
ConstructorsConstructorDescriptionEvidenceReference(String id, EvidenceReference.EvidenceType type, String relativePath, String mediaType, String sha256) Creates an immutable evidence reference. -
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.id()Returns the value of theidrecord component.Returns the value of themediaTyperecord component.Returns the value of therelativePathrecord component.sha256()Returns the value of thesha256record component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
EvidenceReference
public EvidenceReference(String id, EvidenceReference.EvidenceType type, String relativePath, String mediaType, String sha256) Creates an immutable evidence reference.
-
-
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). -
id
-
type
-
relativePath
Returns the value of therelativePathrecord component.- Returns:
- the value of the
relativePathrecord component
-
mediaType
-
sha256
-