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.-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.Application
Application.Stub -
Constructor Summary
ConstructorsConstructorDescriptionStub(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 aStubrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentDirsrecord component.Returns the value of thecopyrightrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextraAppImageFileDatarecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theimageLayoutrecord component.Returns the value of thelaunchersrecord component.name()Returns the value of thenamerecord component.Returns the value of theruntimeBuilderrecord component.srcDir()Returns the value of thesrcDirrecord component.final StringtoString()Returns a string representation of this record class.vendor()Returns the value of thevendorrecord component.version()Returns the value of theversionrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jdk.jpackage.internal.model.Application
additionalLaunchers, appImageDirName, asApplicationLayout, fileAssociations, isRuntime, isService, mainLauncher
-
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 aStubrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentversion- the value for theversionrecord componentvendor- the value for thevendorrecord componentcopyright- the value for thecopyrightrecord componentsrcDir- the value for thesrcDirrecord componentcontentDirs- the value for thecontentDirsrecord componentimageLayout- the value for theimageLayoutrecord componentruntimeBuilder- the value for theruntimeBuilderrecord componentlaunchers- the value for thelaunchersrecord componentextraAppImageFileData- the value for theextraAppImageFileDatarecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceApplication- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfaceApplication- Returns:
- the value of the
descriptionrecord component
-
version
Returns the value of theversionrecord component.- Specified by:
versionin interfaceApplication- Returns:
- the value of the
versionrecord component
-
vendor
Returns the value of thevendorrecord component.- Specified by:
vendorin interfaceApplication- Returns:
- the value of the
vendorrecord component
-
copyright
Returns the value of thecopyrightrecord component.- Specified by:
copyrightin interfaceApplication- Returns:
- the value of the
copyrightrecord component
-
srcDir
Returns the value of thesrcDirrecord component.- Specified by:
srcDirin interfaceApplication- Returns:
- the value of the
srcDirrecord component
-
contentDirs
Returns the value of thecontentDirsrecord component.- Specified by:
contentDirsin interfaceApplication- Returns:
- the value of the
contentDirsrecord component - See Also:
-
imageLayout
Returns the value of theimageLayoutrecord component.- Specified by:
imageLayoutin interfaceApplication- Returns:
- the value of the
imageLayoutrecord component
-
runtimeBuilder
Returns the value of theruntimeBuilderrecord component.- Specified by:
runtimeBuilderin interfaceApplication- Returns:
- the value of the
runtimeBuilderrecord component
-
launchers
Returns the value of thelaunchersrecord component.- Specified by:
launchersin interfaceApplication- Returns:
- the value of the
launchersrecord component - See Also:
-
extraAppImageFileData
Returns the value of theextraAppImageFileDatarecord component.- Specified by:
extraAppImageFileDatain interfaceApplication- Returns:
- the value of the
extraAppImageFileDatarecord component
-