Record Class Application.Stub

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

public static record Application.Stub(String name, String description, String version, String vendor, String copyright, Optional<Path> srcDir, List<Path> contentDirs, AppImageLayout imageLayout, Optional<RuntimeBuilder> runtimeBuilder, List<Launcher> launchers, Map<String,String> extraAppImageFileData) extends Record implements Application
Default implementation of Application interface.
  • Constructor Details

    • Stub

      public Stub(String name, String description, String version, String vendor, String copyright, Optional<Path> srcDir, List<Path> contentDirs, AppImageLayout imageLayout, Optional<RuntimeBuilder> runtimeBuilder, List<Launcher> launchers, Map<String,String> extraAppImageFileData)
      Creates an instance of a Stub record class.
      Parameters:
      name - the value for the name record component
      description - the value for the description record component
      version - the value for the version record component
      vendor - the value for the vendor record component
      copyright - the value for the copyright record component
      srcDir - the value for the srcDir record component
      contentDirs - the value for the contentDirs record component
      imageLayout - the value for the imageLayout record component
      runtimeBuilder - the value for the runtimeBuilder record component
      launchers - the value for the launchers record component
      extraAppImageFileData - the value for the extraAppImageFileData 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.
    • name

      public String name()
      Returns the value of the name record component.
      Specified by:
      name in interface Application
      Returns:
      the value of the name record component
    • description

      public String description()
      Returns the value of the description record component.
      Specified by:
      description in interface Application
      Returns:
      the value of the description record component
    • version

      public String version()
      Returns the value of the version record component.
      Specified by:
      version in interface Application
      Returns:
      the value of the version record component
    • vendor

      public String vendor()
      Returns the value of the vendor record component.
      Specified by:
      vendor in interface Application
      Returns:
      the value of the vendor record component
    • copyright

      public String copyright()
      Returns the value of the copyright record component.
      Specified by:
      copyright in interface Application
      Returns:
      the value of the copyright record component
    • srcDir

      public Optional<Path> srcDir()
      Returns the value of the srcDir record component.
      Specified by:
      srcDir in interface Application
      Returns:
      the value of the srcDir record component
    • contentDirs

      public List<Path> contentDirs()
      Returns the value of the contentDirs record component.
      Specified by:
      contentDirs in interface Application
      Returns:
      the value of the contentDirs record component
      See Also:
    • imageLayout

      public AppImageLayout imageLayout()
      Returns the value of the imageLayout record component.
      Specified by:
      imageLayout in interface Application
      Returns:
      the value of the imageLayout record component
    • runtimeBuilder

      public Optional<RuntimeBuilder> runtimeBuilder()
      Returns the value of the runtimeBuilder record component.
      Specified by:
      runtimeBuilder in interface Application
      Returns:
      the value of the runtimeBuilder record component
    • launchers

      public List<Launcher> launchers()
      Returns the value of the launchers record component.
      Specified by:
      launchers in interface Application
      Returns:
      the value of the launchers record component
      See Also:
    • extraAppImageFileData

      public Map<String,String> extraAppImageFileData()
      Returns the value of the extraAppImageFileData record component.
      Specified by:
      extraAppImageFileData in interface Application
      Returns:
      the value of the extraAppImageFileData record component