Record Class ManyAsyncStepsExample.Output
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.examples.ManyAsyncStepsExample.Output
- Enclosing class:
- ManyAsyncStepsExample
public static record ManyAsyncStepsExample.Output(long result, long executionTimeMs, long replayTimeMs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOutput(long result, long executionTimeMs, long replayTimeMs) Creates an instance of aOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexecutionTimeMsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thereplayTimeMsrecord component.longresult()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Output
public Output(long result, long executionTimeMs, long replayTimeMs) Creates an instance of aOutputrecord class.- Parameters:
result- the value for theresultrecord componentexecutionTimeMs- the value for theexecutionTimeMsrecord componentreplayTimeMs- the value for thereplayTimeMsrecord 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. All components in this record class are compared with '=='. -
result
public long result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
executionTimeMs
public long executionTimeMs()Returns the value of theexecutionTimeMsrecord component.- Returns:
- the value of the
executionTimeMsrecord component
-
replayTimeMs
public long replayTimeMs()Returns the value of thereplayTimeMsrecord component.- Returns:
- the value of the
replayTimeMsrecord component
-