Record Class AnahataUcUtils.InstalledModuleDetails

java.lang.Object
java.lang.Record
uno.anahata.asi.nb.uc.AnahataUcUtils.InstalledModuleDetails
Record Components:
specVersion - The specification version (e.g. "1.1.2").
implVersion - The implementation version string (e.g. "1.1.2-20260824").
buildVersion - The build version string (e.g. "202608241014").
enabled - Whether the module is currently active/enabled.
Enclosing class:
AnahataUcUtils

public static record AnahataUcUtils.InstalledModuleDetails(String specVersion, String implVersion, String buildVersion, boolean enabled) extends Record
DTO capturing detailed version metadata for an installed NetBeans module.
Author:
anahata
  • Field Details

    • specVersion

      private final String specVersion
      The field for the specVersion record component.
    • implVersion

      private final String implVersion
      The field for the implVersion record component.
    • buildVersion

      private final String buildVersion
      The field for the buildVersion record component.
    • enabled

      private final boolean enabled
      The field for the enabled record component.
  • Constructor Details

    • InstalledModuleDetails

      public InstalledModuleDetails(String specVersion, String implVersion, String buildVersion, boolean enabled)
      Creates an instance of a InstalledModuleDetails record class.
      Parameters:
      specVersion - the value for the specVersion record component
      implVersion - the value for the implVersion record component
      buildVersion - the value for the buildVersion record component
      enabled - the value for the enabled record component
  • Method Details

    • toFormattedString

      public String toFormattedString()
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • specVersion

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

      public String implVersion()
      Returns the value of the implVersion record component.
      Returns:
      the value of the implVersion record component
    • buildVersion

      public String buildVersion()
      Returns the value of the buildVersion record component.
      Returns:
      the value of the buildVersion record component
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component