Record Class Launcher.Stub
java.lang.Object
java.lang.Record
jdk.jpackage.internal.model.Launcher.Stub
- All Implemented Interfaces:
Launcher
- Enclosing interface:
Launcher
public static record Launcher.Stub(String name, Optional<LauncherStartupInfo> startupInfo, List<FileAssociation> fileAssociations, boolean isService, String description, Optional<LauncherIcon> icon, String defaultIconResourceName, Map<String,String> extraAppImageFileData)
extends Record
implements Launcher
Default implementation of
Launcher
interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.Launcher
Launcher.Stub
-
Constructor Summary
ConstructorsConstructorDescriptionStub
(String name, Optional<LauncherStartupInfo> startupInfo, List<FileAssociation> fileAssociations, boolean isService, String description, Optional<LauncherIcon> icon, String defaultIconResourceName, Map<String, String> extraAppImageFileData) Creates an instance of aStub
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultIconResourceName
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.Returns the value of thefileAssociations
record component.final int
hashCode()
Returns a hash code value for this object.icon()
Returns the value of theicon
record component.boolean
Returns the value of theisService
record component.name()
Returns the value of thename
record component.Returns the value of thestartupInfo
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface jdk.jpackage.internal.model.Launcher
executableName, executableNameWithSuffix, executableResource, executableSuffix, hasCustomIcon, hasDefaultIcon, hasIcon
-
Constructor Details
-
Stub
public Stub(String name, Optional<LauncherStartupInfo> startupInfo, List<FileAssociation> fileAssociations, boolean isService, String description, Optional<LauncherIcon> icon, String defaultIconResourceName, Map<String, String> extraAppImageFileData) Creates an instance of aStub
record class.- Parameters:
name
- the value for thename
record componentstartupInfo
- the value for thestartupInfo
record componentfileAssociations
- the value for thefileAssociations
record componentisService
- the value for theisService
record componentdescription
- the value for thedescription
record componenticon
- the value for theicon
record componentdefaultIconResourceName
- the value for thedefaultIconResourceName
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with thecompare
method from their corresponding wrapper classes. -
name
-
startupInfo
Returns the value of thestartupInfo
record component.- Specified by:
startupInfo
in interfaceLauncher
- Returns:
- the value of the
startupInfo
record component
-
fileAssociations
Returns the value of thefileAssociations
record component.- Specified by:
fileAssociations
in interfaceLauncher
- Returns:
- the value of the
fileAssociations
record component
-
isService
-
description
Returns the value of thedescription
record component.- Specified by:
description
in interfaceLauncher
- Returns:
- the value of the
description
record component
-
icon
Returns the value of theicon
record component. -
defaultIconResourceName
Returns the value of thedefaultIconResourceName
record component.- Specified by:
defaultIconResourceName
in interfaceLauncher
- Returns:
- the value of the
defaultIconResourceName
record component
-
extraAppImageFileData
Returns the value of theextraAppImageFileData
record component.- Specified by:
extraAppImageFileData
in interfaceLauncher
- Returns:
- the value of the
extraAppImageFileData
record component
-