Record Class RenderResult
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.RenderResult
- Record Components:
pageCount- 頁數bytesWritten- 寫入out的位元組數diagnostics- INFO 與 WARNING diagnostic(ERROR 一律以例外傳出)
public record RenderResult(int pageCount, long bytesWritten, List<ReportDiagnostic> diagnostics)
extends Record
render 成功的結果
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionRenderResult(int pageCount, long bytesWritten, List<ReportDiagnostic> diagnostics) Creates an instance of aRenderResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebytesWrittenrecord 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.intReturns the value of thepageCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RenderResult
Creates an instance of aRenderResultrecord class.- Parameters:
pageCount- the value for thepageCountrecord componentbytesWritten- the value for thebytesWrittenrecord componentdiagnostics- the value for thediagnosticsrecord 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. -
pageCount
-
bytesWritten
public long bytesWritten()Returns the value of thebytesWrittenrecord component.- Returns:
- the value of the
bytesWrittenrecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-