Record Class WinMsiPackageMixin.Stub

java.lang.Object
java.lang.Record
jdk.jpackage.internal.model.WinMsiPackageMixin.Stub
All Implemented Interfaces:
WinMsiPackageMixin
Enclosing interface:
WinMsiPackageMixin

public static record WinMsiPackageMixin.Stub(DottedVersion msiVersion, boolean withInstallDirChooser, boolean withShortcutPrompt, Optional<String> helpURL, Optional<String> updateURL, String startMenuGroupName, boolean isSystemWideInstall, UUID upgradeCode, UUID productCode, Optional<Path> serviceInstaller) extends Record implements WinMsiPackageMixin
  • Constructor Details

    • Stub

      public Stub(DottedVersion msiVersion, boolean withInstallDirChooser, boolean withShortcutPrompt, Optional<String> helpURL, Optional<String> updateURL, String startMenuGroupName, boolean isSystemWideInstall, UUID upgradeCode, UUID productCode, Optional<Path> serviceInstaller)
      Creates an instance of a Stub record class.
      Parameters:
      msiVersion - the value for the msiVersion record component
      withInstallDirChooser - the value for the withInstallDirChooser record component
      withShortcutPrompt - the value for the withShortcutPrompt record component
      helpURL - the value for the helpURL record component
      updateURL - the value for the updateURL record component
      startMenuGroupName - the value for the startMenuGroupName record component
      isSystemWideInstall - the value for the isSystemWideInstall record component
      upgradeCode - the value for the upgradeCode record component
      productCode - the value for the productCode record component
      serviceInstaller - the value for the serviceInstaller 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. 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.
    • msiVersion

      public DottedVersion msiVersion()
      Returns the value of the msiVersion record component.
      Specified by:
      msiVersion in interface WinMsiPackageMixin
      Returns:
      the value of the msiVersion record component
    • withInstallDirChooser

      public boolean withInstallDirChooser()
      Returns the value of the withInstallDirChooser record component.
      Specified by:
      withInstallDirChooser in interface WinMsiPackageMixin
      Returns:
      the value of the withInstallDirChooser record component
    • withShortcutPrompt

      public boolean withShortcutPrompt()
      Returns the value of the withShortcutPrompt record component.
      Specified by:
      withShortcutPrompt in interface WinMsiPackageMixin
      Returns:
      the value of the withShortcutPrompt record component
    • helpURL

      public Optional<String> helpURL()
      Returns the value of the helpURL record component.
      Specified by:
      helpURL in interface WinMsiPackageMixin
      Returns:
      the value of the helpURL record component
    • updateURL

      public Optional<String> updateURL()
      Returns the value of the updateURL record component.
      Specified by:
      updateURL in interface WinMsiPackageMixin
      Returns:
      the value of the updateURL record component
    • startMenuGroupName

      public String startMenuGroupName()
      Returns the value of the startMenuGroupName record component.
      Specified by:
      startMenuGroupName in interface WinMsiPackageMixin
      Returns:
      the value of the startMenuGroupName record component
    • isSystemWideInstall

      public boolean isSystemWideInstall()
      Returns the value of the isSystemWideInstall record component.
      Specified by:
      isSystemWideInstall in interface WinMsiPackageMixin
      Returns:
      the value of the isSystemWideInstall record component
    • upgradeCode

      public UUID upgradeCode()
      Returns the value of the upgradeCode record component.
      Specified by:
      upgradeCode in interface WinMsiPackageMixin
      Returns:
      the value of the upgradeCode record component
    • productCode

      public UUID productCode()
      Returns the value of the productCode record component.
      Specified by:
      productCode in interface WinMsiPackageMixin
      Returns:
      the value of the productCode record component
    • serviceInstaller

      public Optional<Path> serviceInstaller()
      Returns the value of the serviceInstaller record component.
      Specified by:
      serviceInstaller in interface WinMsiPackageMixin
      Returns:
      the value of the serviceInstaller record component