Record Class Helper.JvmInfo

java.lang.Object
java.lang.Record
eu.hansolo.toolbox.Helper.JvmInfo
Enclosing class:
Helper

public static record Helper.JvmInfo(String vmName, String vmVendor, String vmVersion, String specName, String specVendor, String specVersion) extends Record
  • Constructor Details

    • JvmInfo

      public JvmInfo(String vmName, String vmVendor, String vmVersion, String specName, String specVendor, String specVersion)
      Creates an instance of a JvmInfo record class.
      Parameters:
      vmName - the value for the vmName record component
      vmVendor - the value for the vmVendor record component
      vmVersion - the value for the vmVersion record component
      specName - the value for the specName record component
      specVendor - the value for the specVendor record component
      specVersion - the value for the specVersion record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • vmName

      public String vmName()
      Returns the value of the vmName record component.
      Returns:
      the value of the vmName record component
    • vmVendor

      public String vmVendor()
      Returns the value of the vmVendor record component.
      Returns:
      the value of the vmVendor record component
    • vmVersion

      public String vmVersion()
      Returns the value of the vmVersion record component.
      Returns:
      the value of the vmVersion record component
    • specName

      public String specName()
      Returns the value of the specName record component.
      Returns:
      the value of the specName record component
    • specVendor

      public String specVendor()
      Returns the value of the specVendor record component.
      Returns:
      the value of the specVendor record component
    • specVersion

      public String specVersion()
      Returns the value of the specVersion record component.
      Returns:
      the value of the specVersion record component