APIdia Launch Partner
Top Description Inners Fields Methods
jdk.jpackage.internal.model

public sealed Interface DefaultLauncherIcon

extends LauncherIcon
permits Impl
Known Direct Implementers
jdk.jpackage.internal.model.DefaultLauncherIcon.Details.Impl
Imports
java.util.Optional

Default application launcher icon.

Default icon is loaded from the resources of jdk.jpackage module.

Use INSTANCE field to get an instance of this type.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final DefaultLauncherIcon
INSTANCE

Singleton.

Method Summary

Modifier and TypeMethod and Description
public static Optional<DefaultLauncherIcon>

Returns:

the given icon as DefaultLauncherIcon type or an empty Optional instance
fromLauncherIcon
(LauncherIcon
application launcher icon object or null
icon
)

Returns the given icon as DefaultLauncherIcon type or an empty Optional instance if the given icon object is not an instance of DefaultLauncherIcon type.

Field Detail

INSTANCEback to summary
public static final DefaultLauncherIcon INSTANCE

Singleton.

Method Detail

fromLauncherIconback to summary
public static Optional<DefaultLauncherIcon> fromLauncherIcon(LauncherIcon icon)

Returns the given icon as DefaultLauncherIcon type or an empty Optional instance if the given icon object is not an instance of DefaultLauncherIcon type.

Parameters
icon:LauncherIcon

application launcher icon object or null

Returns:Optional<DefaultLauncherIcon>

the given icon as DefaultLauncherIcon type or an empty Optional instance

jdk.jpackage.internal.model back to summary

public final Class DefaultLauncherIcon.Details

extends Object
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Detailsback to summary
public Details()
jdk.jpackage.internal.model back to summary

private final Class DefaultLauncherIcon.Details.Impl

extends Object
implements DefaultLauncherIcon
Class Inheritance
All Implemented Interfaces
jdk.jpackage.internal.model.DefaultLauncherIcon, jdk.jpackage.internal.model.LauncherIcon

Constructor Summary

AccessConstructor and Description
private
Impl()

Constructor Detail

Implback to summary
private Impl()