Record Class TimedSample
java.lang.Object
java.lang.Record
io.nosqlbench.scenarios.simframe.stabilization.TimedSample
-
Constructor Summary
ConstructorsConstructorDescriptionTimedSample(long msTime, double value) Creates an instance of aTimedSamplerecord 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.longmsTime()Returns the value of themsTimerecord component.final StringtoString()Returns a string representation of this record class.doublevalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
TimedSample
public TimedSample(long msTime, double value) Creates an instance of aTimedSamplerecord class.- Parameters:
msTime- the value for themsTimerecord componentvalue- the value for thevaluerecord 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 with thecomparemethod from their corresponding wrapper classes. -
msTime
public long msTime()Returns the value of themsTimerecord component.- Returns:
- the value of the
msTimerecord component
-
value
public double value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-