java.lang.Object
java.lang.Record
eu.hansolo.toolbox.Helper.JvmInfo
- Enclosing class:
- Helper
-
Constructor Summary
Constructors -
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.specName()Returns the value of thespecNamerecord component.Returns the value of thespecVendorrecord component.Returns the value of thespecVersionrecord component.final StringtoString()Returns a string representation of this record class.vmName()Returns the value of thevmNamerecord component.vmVendor()Returns the value of thevmVendorrecord component.Returns the value of thevmVersionrecord component.
-
Constructor Details
-
JvmInfo
public JvmInfo(String vmName, String vmVendor, String vmVersion, String specName, String specVendor, String specVersion) Creates an instance of aJvmInforecord class.- Parameters:
vmName- the value for thevmNamerecord componentvmVendor- the value for thevmVendorrecord componentvmVersion- the value for thevmVersionrecord componentspecName- the value for thespecNamerecord componentspecVendor- the value for thespecVendorrecord componentspecVersion- the value for thespecVersionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
vmName
Returns the value of thevmNamerecord component.- Returns:
- the value of the
vmNamerecord component
-
vmVendor
Returns the value of thevmVendorrecord component.- Returns:
- the value of the
vmVendorrecord component
-
vmVersion
Returns the value of thevmVersionrecord component.- Returns:
- the value of the
vmVersionrecord component
-
specName
Returns the value of thespecNamerecord component.- Returns:
- the value of the
specNamerecord component
-
specVendor
Returns the value of thespecVendorrecord component.- Returns:
- the value of the
specVendorrecord component
-
specVersion
Returns the value of thespecVersionrecord component.- Returns:
- the value of the
specVersionrecord component
-