Record Class ApplicationLaunchers
java.lang.Object
java.lang.Record
jdk.jpackage.internal.model.ApplicationLaunchers
public record ApplicationLaunchers(Launcher mainLauncher, List<Launcher> additionalLaunchers)
extends Record
Utility class to manage application launchers.
Use asList()
to get application launchers as a list.
Use mainLauncher()
to get the main application launcher.
Use additionalLaunchers()
to get additional application launchers.
Use fromList(java.util.List<jdk.jpackage.internal.model.Launcher>)
to convert the list of application launchers into ApplicationLaunchers
instance.
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationLaunchers
(Launcher mainLauncher) ApplicationLaunchers
(Launcher mainLauncher, List<Launcher> additionalLaunchers) Creates an instance of aApplicationLaunchers
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalLaunchers
record component.asList()
final boolean
Indicates whether some other object is "equal to" this one.static Optional
<ApplicationLaunchers> final int
hashCode()
Returns a hash code value for this object.Returns the value of themainLauncher
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ApplicationLaunchers
-
ApplicationLaunchers
-
-
Method Details
-
asList
-
fromList
-
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)
. -
mainLauncher
Returns the value of themainLauncher
record component.- Returns:
- the value of the
mainLauncher
record component
-
additionalLaunchers
-