Record Class Benchmark.TimedResult<T>
java.lang.Object
java.lang.Record
cloud.opencode.base.test.benchmark.Benchmark.TimedResult<T>
- Type Parameters:
T- the result type | 结果类型- Record Components:
result- the result | 结果duration- the duration | 时长
- Enclosing class:
Benchmark
Timed result
计时结果
- Since:
- JDK 25, opencode-base-test V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionTimedResult(T result, Duration duration) Creates an instance of aTimedResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longmillis()longnanos()result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TimedResult
-
-
Method Details
-
millis
public long millis() -
nanos
public long nanos() -
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). -
result
-
duration
-