Record Class StoredPdf
java.lang.Object
java.lang.Record
io.leandev.appfuse.pdf.StoredPdf
-
Constructor Summary
ConstructorsConstructorDescriptionStoredPdf(String partition, String fileId, String filename, String contentType, long size, int pageCount, Instant createdAt, Instant storedAt) StoredPdf(String partition, String fileId, String filename, String contentType, long size, int pageCount, Instant createdAt, Instant storedAt, List<PdfDiagnostic> diagnostics) Creates an instance of aStoredPdfrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.Returns the value of thecreatedAtrecord component.Returns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.fileId()Returns the value of thefileIdrecord component.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thepageCountrecord component.Returns the value of thepartitionrecord component.longsize()Returns the value of thesizerecord component.storedAt()Returns the value of thestoredAtrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StoredPdf
public StoredPdf(String partition, String fileId, String filename, String contentType, long size, int pageCount, Instant createdAt, Instant storedAt, List<PdfDiagnostic> diagnostics) Creates an instance of aStoredPdfrecord class.- Parameters:
partition- the value for thepartitionrecord componentfileId- the value for thefileIdrecord componentfilename- the value for thefilenamerecord componentcontentType- the value for thecontentTyperecord componentsize- the value for thesizerecord componentpageCount- the value for thepageCountrecord componentcreatedAt- the value for thecreatedAtrecord componentstoredAt- the value for thestoredAtrecord componentdiagnostics- the value for thediagnosticsrecord component
-
StoredPdf
-
-
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. -
partition
Returns the value of thepartitionrecord component.- Returns:
- the value of the
partitionrecord component
-
fileId
Returns the value of thefileIdrecord component.- Returns:
- the value of the
fileIdrecord component
-
filename
Returns the value of thefilenamerecord component.- Returns:
- the value of the
filenamerecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
pageCount
public int pageCount()Returns the value of thepageCountrecord component.- Returns:
- the value of the
pageCountrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
storedAt
Returns the value of thestoredAtrecord component.- Returns:
- the value of the
storedAtrecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-