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 aStub
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentDirs
record component.Returns the value of thecopyright
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theextraAppImageFileData
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theimageLayout
record component.Returns the value of thelaunchers
record component.name()
Returns the value of thename
record component.Returns the value of theruntimeBuilder
record component.srcDir()
Returns the value of thesrcDir
record component.final String
toString()
Returns a string representation of this record class.vendor()
Returns the value of thevendor
record component.version()
Returns the value of theversion
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 aStub
record class.- Parameters:
name
- the value for thename
record componentdescription
- the value for thedescription
record componentversion
- the value for theversion
record componentvendor
- the value for thevendor
record componentcopyright
- the value for thecopyright
record componentsrcDir
- the value for thesrcDir
record componentcontentDirs
- the value for thecontentDirs
record componentimageLayout
- the value for theimageLayout
record componentruntimeBuilder
- the value for theruntimeBuilder
record componentlaunchers
- the value for thelaunchers
record componentextraAppImageFileData
- the value for theextraAppImageFileData
record 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 thename
record component.- Specified by:
name
in interfaceApplication
- Returns:
- the value of the
name
record component
-
description
Returns the value of thedescription
record component.- Specified by:
description
in interfaceApplication
- Returns:
- the value of the
description
record component
-
version
Returns the value of theversion
record component.- Specified by:
version
in interfaceApplication
- Returns:
- the value of the
version
record component
-
vendor
Returns the value of thevendor
record component.- Specified by:
vendor
in interfaceApplication
- Returns:
- the value of the
vendor
record component
-
copyright
Returns the value of thecopyright
record component.- Specified by:
copyright
in interfaceApplication
- Returns:
- the value of the
copyright
record component
-
srcDir
Returns the value of thesrcDir
record component.- Specified by:
srcDir
in interfaceApplication
- Returns:
- the value of the
srcDir
record component
-
contentDirs
Returns the value of thecontentDirs
record component.- Specified by:
contentDirs
in interfaceApplication
- Returns:
- the value of the
contentDirs
record component - See Also:
-
imageLayout
Returns the value of theimageLayout
record component.- Specified by:
imageLayout
in interfaceApplication
- Returns:
- the value of the
imageLayout
record component
-
runtimeBuilder
Returns the value of theruntimeBuilder
record component.- Specified by:
runtimeBuilder
in interfaceApplication
- Returns:
- the value of the
runtimeBuilder
record component
-
launchers
Returns the value of thelaunchers
record component.- Specified by:
launchers
in interfaceApplication
- Returns:
- the value of the
launchers
record component - See Also:
-
extraAppImageFileData
Returns the value of theextraAppImageFileData
record component.- Specified by:
extraAppImageFileData
in interfaceApplication
- Returns:
- the value of the
extraAppImageFileData
record component
-