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 aStub
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisConsole
record component.Returns the value of theshortcuts
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Stub
Creates an instance of aStub
record class.- Parameters:
isConsole
- the value for theisConsole
record componentshortcuts
- the value for theshortcuts
record 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 thecompare
method from their corresponding wrapper classes. -
isConsole
public boolean isConsole()Returns the value of theisConsole
record component.- Specified by:
isConsole
in interfaceWinLauncherMixin
- Returns:
- the value of the
isConsole
record component
-
shortcuts
Returns the value of theshortcuts
record component.- Specified by:
shortcuts
in interfaceWinLauncherMixin
- Returns:
- the value of the
shortcuts
record component
-