Package es.urjc.etsii.grafo.util
Record Class BenchmarkUtil.SystemInfo
java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.util.BenchmarkUtil.SystemInfo
- Record Components:
nProcessors- number of processorsvmVersion- java virtual machine versionjavaVersion- version of the java code, as configured in the compiler
- Enclosing class:
BenchmarkUtil
public static record BenchmarkUtil.SystemInfo(int nProcessors, String vmVersion, String javaVersion)
extends Record
System info
-
Constructor Summary
ConstructorsConstructorDescriptionSystemInfo(int nProcessors, String vmVersion, String javaVersion) Creates an instance of aSystemInforecord 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.Returns the value of thejavaVersionrecord component.intReturns the value of thenProcessorsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevmVersionrecord component.
-
Constructor Details
-
SystemInfo
Creates an instance of aSystemInforecord class.- Parameters:
nProcessors- the value for thenProcessorsrecord componentvmVersion- the value for thevmVersionrecord componentjavaVersion- the value for thejavaVersionrecord 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 '=='. -
nProcessors
public int nProcessors()Returns the value of thenProcessorsrecord component.- Returns:
- the value of the
nProcessorsrecord component
-
vmVersion
Returns the value of thevmVersionrecord component.- Returns:
- the value of the
vmVersionrecord component
-
javaVersion
Returns the value of thejavaVersionrecord component.- Returns:
- the value of the
javaVersionrecord component
-