Record Class BenchmarkOutcome
java.lang.Object
java.lang.Record
ai.redouble.demo.BenchmarkOutcome
What a benchmark produced: the reference run's answer and the report the runtime also logged as a table.
-
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkOutcome(DemoAnswer answer, BenchmarkReport report) Creates an instance of aBenchmarkOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionanswer()Returns the value of theanswerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.report()Returns the value of thereportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BenchmarkOutcome
Creates an instance of aBenchmarkOutcomerecord class.- Parameters:
answer- the value for theanswerrecord componentreport- the value for thereportrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
answer
Returns the value of theanswerrecord component.- Returns:
- the value of the
answerrecord component
-
report
Returns the value of thereportrecord component.- Returns:
- the value of the
reportrecord component
-