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 aStubrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultIconResourceNamerecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextraAppImageFileDatarecord component.Returns the value of thefileAssociationsrecord component.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.booleanReturns the value of theisServicerecord component.name()Returns the value of thenamerecord component.Returns the value of thestartupInforecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 aStubrecord class.- Parameters:
name- the value for thenamerecord componentstartupInfo- the value for thestartupInforecord componentfileAssociations- the value for thefileAssociationsrecord componentisService- the value for theisServicerecord componentdescription- the value for thedescriptionrecord componenticon- the value for theiconrecord componentdefaultIconResourceName- the value for thedefaultIconResourceNamerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
startupInfo
Returns the value of thestartupInforecord component.- Specified by:
startupInfoin interfaceLauncher- Returns:
- the value of the
startupInforecord component
-
fileAssociations
Returns the value of thefileAssociationsrecord component.- Specified by:
fileAssociationsin interfaceLauncher- Returns:
- the value of the
fileAssociationsrecord component
-
isService
-
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfaceLauncher- Returns:
- the value of the
descriptionrecord component
-
icon
Returns the value of theiconrecord component. -
defaultIconResourceName
Returns the value of thedefaultIconResourceNamerecord component.- Specified by:
defaultIconResourceNamein interfaceLauncher- Returns:
- the value of the
defaultIconResourceNamerecord component
-
extraAppImageFileData
Returns the value of theextraAppImageFileDatarecord component.- Specified by:
extraAppImageFileDatain interfaceLauncher- Returns:
- the value of the
extraAppImageFileDatarecord component
-