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
-
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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
nProcessors
public int nProcessors()Returns the value of thenProcessorsrecord component.- Returns:
- the value of the
nProcessorsrecord component
-
vmVersion
-
javaVersion
Returns the value of thejavaVersionrecord component.- Returns:
- the value of the
javaVersionrecord component
-