Record Class ReportContext.AttachmentRecord
java.lang.Object
java.lang.Record
com.shaft.tools.io.internal.ReportContext.AttachmentRecord
- Record Components:
description- report-visible attachment descriptioncontentType- MIME type sent to AllurefileExtension- file extension sent to Allurepurpose- inferred or supplied evidence purposesizeBytes- attachment size in bytes, or-1when unknown
- Enclosing class:
ReportContext
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentRecord(String description, String contentType, String fileExtension, String purpose, long sizeBytes) Creates an instance of aAttachmentRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileExtensionrecord component.final inthashCode()Returns a hash code value for this object.purpose()Returns the value of thepurposerecord component.longReturns the value of thesizeBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AttachmentRecord
public AttachmentRecord(String description, String contentType, String fileExtension, String purpose, long sizeBytes) Creates an instance of aAttachmentRecordrecord class.- Parameters:
description- the value for thedescriptionrecord componentcontentType- the value for thecontentTyperecord componentfileExtension- the value for thefileExtensionrecord componentpurpose- the value for thepurposerecord componentsizeBytes- the value for thesizeBytesrecord component
-
-
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. -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
fileExtension
Returns the value of thefileExtensionrecord component.- Returns:
- the value of the
fileExtensionrecord component
-
purpose
-
sizeBytes
-