Record Class LauncherJarStartupInfoMixin.Stub
java.lang.Object
java.lang.Record
jdk.jpackage.internal.model.LauncherJarStartupInfoMixin.Stub
- All Implemented Interfaces:
LauncherJarStartupInfoMixin
- Enclosing interface:
LauncherJarStartupInfoMixin
public static record LauncherJarStartupInfoMixin.Stub(Path jarPath, boolean isJarWithMainClass)
extends Record
implements LauncherJarStartupInfoMixin
Default implementation of
LauncherJarStartupInfoMixin
interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.LauncherJarStartupInfoMixin
LauncherJarStartupInfoMixin.Stub
-
Constructor Summary
Constructors -
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 theisJarWithMainClass
record component.jarPath()
Returns the value of thejarPath
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Stub
Creates an instance of aStub
record class.- Parameters:
jarPath
- the value for thejarPath
record componentisJarWithMainClass
- the value for theisJarWithMainClass
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. -
jarPath
Returns the value of thejarPath
record component.- Specified by:
jarPath
in interfaceLauncherJarStartupInfoMixin
- Returns:
- the value of the
jarPath
record component
-
isJarWithMainClass
public boolean isJarWithMainClass()Returns the value of theisJarWithMainClass
record component.- Specified by:
isJarWithMainClass
in interfaceLauncherJarStartupInfoMixin
- Returns:
- the value of the
isJarWithMainClass
record component
-