Record Class ReportStatus.Generating
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.ReportStatus.Generating
- Record Components:
startedAt- 開始時間pagesCompleted- 已完成頁數(見RenderOptions.onPage)
- All Implemented Interfaces:
ReportStatus
- Enclosing interface:
ReportStatus
public static record ReportStatus.Generating(Instant startedAt, int pagesCompleted)
extends Record
implements ReportStatus
產生中
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface ReportStatus
ReportStatus.Expired, ReportStatus.Failed, ReportStatus.Generating, ReportStatus.Ready -
Constructor Summary
ConstructorsConstructorDescriptionGenerating(Instant startedAt, int pagesCompleted) Creates an instance of aGeneratingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thepagesCompletedrecord component.Returns the value of thestartedAtrecord component.status()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Generating
Creates an instance of aGeneratingrecord class.- Parameters:
startedAt- the value for thestartedAtrecord componentpagesCompleted- the value for thepagesCompletedrecord component
-
-
Method Details
-
status
- Specified by:
statusin interfaceReportStatus- Returns:
- 狀態名稱
-
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. -
startedAt
-
pagesCompleted
public int pagesCompleted()Returns the value of thepagesCompletedrecord component.- Returns:
- the value of the
pagesCompletedrecord component
-