Package ke.ric.renderer.api
Record Class RenderProgress
java.lang.Object
java.lang.Record
ke.ric.renderer.api.RenderProgress
- Record Components:
phase- current actual-work phasebasisPoints- monotonic progress in 0..10000 (100 basis points equal one percent)
Immutable, non-estimated progress for an asynchronous render task.
Basis points are monotonic from
0 through 10_000; failed or cancelled tasks keep
their last published snapshot.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOrdered provider work phases exposed without implementation-specific timing estimates. -
Constructor Summary
ConstructorsConstructorDescriptionRenderProgress(RenderProgress.Phase phase, int basisPoints) Creates an instance of aRenderProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebasisPointsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.phase()Returns the value of thephaserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RenderProgress
Creates an instance of aRenderProgressrecord class.- Parameters:
phase- the value for thephaserecord componentbasisPoints- the value for thebasisPointsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
basisPoints
public int basisPoints()Returns the value of thebasisPointsrecord component.- Returns:
- the value of the
basisPointsrecord component
-