Package edu.suffolk.litlab.efsp.model
Record Class FilingAttachment
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.model.FilingAttachment
public record FilingAttachment(FilingComponent filingComponentCode, String documentDescription, String fileName, byte[] fileContents, Optional<DocumentTypeTableRow> documentTypeFormatStandardName, Optional<Integer> pageCount)
extends Record
An individual PDF, all a part of the same "document". The equivalent of an ALDocument.
-
Constructor Summary
ConstructorsConstructorDescriptionFilingAttachment(FilingComponent filingComponentCode, String documentDescription, String fileName, byte[] fileContents, Optional<DocumentTypeTableRow> documentTypeFormatStandardName, Optional<Integer> pageCount) Creates an instance of aFilingAttachmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentDescriptionrecord component.Returns the value of thedocumentTypeFormatStandardNamerecord component.final booleanIndicates whether some other object is "equal to" this one.byte[]Returns the value of thefileContentsrecord component.fileName()Returns the value of thefileNamerecord component.Returns the value of thefilingComponentCoderecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepageCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FilingAttachment
public FilingAttachment(FilingComponent filingComponentCode, String documentDescription, String fileName, byte[] fileContents, Optional<DocumentTypeTableRow> documentTypeFormatStandardName, Optional<Integer> pageCount) Creates an instance of aFilingAttachmentrecord class.- Parameters:
filingComponentCode- the value for thefilingComponentCoderecord componentdocumentDescription- the value for thedocumentDescriptionrecord componentfileName- the value for thefileNamerecord componentfileContents- the value for thefileContentsrecord componentdocumentTypeFormatStandardName- the value for thedocumentTypeFormatStandardNamerecord componentpageCount- the value for thepageCountrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
filingComponentCode
Returns the value of thefilingComponentCoderecord component.- Returns:
- the value of the
filingComponentCoderecord component
-
documentDescription
Returns the value of thedocumentDescriptionrecord component.- Returns:
- the value of the
documentDescriptionrecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
fileContents
public byte[] fileContents()Returns the value of thefileContentsrecord component.- Returns:
- the value of the
fileContentsrecord component
-
documentTypeFormatStandardName
Returns the value of thedocumentTypeFormatStandardNamerecord component.- Returns:
- the value of the
documentTypeFormatStandardNamerecord component
-
pageCount
Returns the value of thepageCountrecord component.- Returns:
- the value of the
pageCountrecord component
-