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 aSystemInfo
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.Returns the value of thejavaVersion
record component.int
Returns the value of thenProcessors
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thevmVersion
record component.
-
Constructor Details
-
SystemInfo
Creates an instance of aSystemInfo
record class.- Parameters:
nProcessors
- the value for thenProcessors
record componentvmVersion
- the value for thevmVersion
record componentjavaVersion
- the value for thejavaVersion
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 '=='. -
nProcessors
public int nProcessors()Returns the value of thenProcessors
record component.- Returns:
- the value of the
nProcessors
record component
-
vmVersion
Returns the value of thevmVersion
record component.- Returns:
- the value of the
vmVersion
record component
-
javaVersion
Returns the value of thejavaVersion
record component.- Returns:
- the value of the
javaVersion
record component
-