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, Set<WinLauncherMixin.WinShortcut> shortcuts)
extends Record
implements WinLauncherMixin
-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.WinLauncherMixin
WinLauncherMixin.Stub, WinLauncherMixin.WinShortcut -
Constructor Summary
ConstructorsConstructorDescriptionStub(boolean isConsole, Set<WinLauncherMixin.WinShortcut> shortcuts) Creates an instance of aStubrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 theshortcutsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Stub
Creates an instance of aStubrecord class.- Parameters:
isConsole- the value for theisConsolerecord componentshortcuts- the value for theshortcutsrecord 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
-
shortcuts
Returns the value of theshortcutsrecord component.- Specified by:
shortcutsin interfaceWinLauncherMixin- Returns:
- the value of the
shortcutsrecord component
-