Record Class FixedPdfRenderer.Result
java.lang.Object
java.lang.Record
io.leandev.appfuse.pdf.FixedPdfRenderer.Result
- Enclosing interface:
FixedPdfRenderer
public static record FixedPdfRenderer.Result(int pages, long bytes, List<PdfDiagnostic> diagnostics)
extends Record
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionResult(int pages, long bytes) Result(int pages, long bytes, List<PdfDiagnostic> diagnostics) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongbytes()Returns the value of thebytesrecord component.Returns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpages()Returns the value of thepagesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
pages- the value for thepagesrecord componentbytes- the value for thebytesrecord componentdiagnostics- the value for thediagnosticsrecord component
-
Result
public Result(int pages, long bytes)
-
-
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. -
pages
public int pages()Returns the value of thepagesrecord component.- Returns:
- the value of the
pagesrecord component
-
bytes
public long bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-