Record Class LinuxPackageMixin.Stub

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

public static record LinuxPackageMixin.Stub(AppImageLayout packageLayout, String menuGroupName, Optional<String> category, Optional<String> additionalDependencies, Optional<String> release, String arch) extends Record implements LinuxPackageMixin
Default implementation of LinuxPackageMixin interface.
  • Constructor Details

    • Stub

      public Stub(AppImageLayout packageLayout, String menuGroupName, Optional<String> category, Optional<String> additionalDependencies, Optional<String> release, String arch)
      Creates an instance of a Stub record class.
      Parameters:
      packageLayout - the value for the packageLayout record component
      menuGroupName - the value for the menuGroupName record component
      category - the value for the category record component
      additionalDependencies - the value for the additionalDependencies record component
      release - the value for the release record component
      arch - the value for the arch 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.
    • packageLayout

      public AppImageLayout packageLayout()
      Returns the value of the packageLayout record component.
      Specified by:
      packageLayout in interface LinuxPackageMixin
      Returns:
      the value of the packageLayout record component
    • category

      public Optional<String> category()
      Returns the value of the category record component.
      Specified by:
      category in interface LinuxPackageMixin
      Returns:
      the value of the category record component
    • additionalDependencies

      public Optional<String> additionalDependencies()
      Returns the value of the additionalDependencies record component.
      Specified by:
      additionalDependencies in interface LinuxPackageMixin
      Returns:
      the value of the additionalDependencies record component
    • release

      public Optional<String> release()
      Returns the value of the release record component.
      Specified by:
      release in interface LinuxPackageMixin
      Returns:
      the value of the release record component
    • arch

      public String arch()
      Returns the value of the arch record component.
      Specified by:
      arch in interface LinuxPackageMixin
      Returns:
      the value of the arch record component