Record Class WinLauncherMixin.Stub
java.lang.Object
java.lang.Record
jdk.jpackage.internal.model.WinLauncherMixin.Stub
- All Implemented Interfaces:
WinLauncherMixin
- Enclosing interface:
WinLauncherMixin
public static record WinLauncherMixin.Stub(boolean isConsole, Optional<LauncherShortcut> startMenuShortcut, Optional<LauncherShortcut> desktopShortcut)
extends Record
implements WinLauncherMixin
-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.WinLauncherMixin
WinLauncherMixin.Stub -
Constructor Summary
ConstructorsConstructorDescriptionStub(boolean isConsole, Optional<LauncherShortcut> startMenuShortcut, Optional<LauncherShortcut> desktopShortcut) Creates an instance of aStubrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedesktopShortcutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisConsolerecord component.Returns the value of thestartMenuShortcutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Stub
public Stub(boolean isConsole, Optional<LauncherShortcut> startMenuShortcut, Optional<LauncherShortcut> desktopShortcut) Creates an instance of aStubrecord class.- Parameters:
isConsole- the value for theisConsolerecord componentstartMenuShortcut- the value for thestartMenuShortcutrecord componentdesktopShortcut- the value for thedesktopShortcutrecord 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. -
isConsole
public boolean isConsole()Returns the value of theisConsolerecord component.- Specified by:
isConsolein interfaceWinLauncherMixin- Returns:
- the value of the
isConsolerecord component
-
startMenuShortcut
Returns the value of thestartMenuShortcutrecord component.- Specified by:
startMenuShortcutin interfaceWinLauncherMixin- Returns:
- the value of the
startMenuShortcutrecord component
-
desktopShortcut
Returns the value of thedesktopShortcutrecord component.- Specified by:
desktopShortcutin interfaceWinLauncherMixin- Returns:
- the value of the
desktopShortcutrecord component
-