Package jadex.benchmark
Record Class AbstractComponentBenchmark.Measurement
java.lang.Object
java.lang.Record
jadex.benchmark.AbstractComponentBenchmark.Measurement
- Enclosing class:
AbstractComponentBenchmark
protected static record AbstractComponentBenchmark.Measurement(String name, long time, long mem)
extends Record
Struct to hold measurement data.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Measurement
(String name, long time, long mem) Creates an instance of aMeasurement
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
mem()
Returns the value of themem
record component.name()
Returns the value of thename
record component.long
time()
Returns the value of thetime
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Measurement
Creates an instance of aMeasurement
record class.- Parameters:
name
- the value for thename
record componenttime
- the value for thetime
record componentmem
- the value for themem
record 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 '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
time
public long time()Returns the value of thetime
record component.- Returns:
- the value of the
time
record component
-
mem
public long mem()Returns the value of themem
record component.- Returns:
- the value of the
mem
record component
-