Record Class LinuxPackageMixin.Stub
java.lang.Object
java.lang.Record
jdk.jpackage.internal.model.LinuxPackageMixin.Stub
- All Implemented Interfaces:
LinuxPackageMixin
- Enclosing interface:
LinuxPackageMixin
public static record LinuxPackageMixin.Stub(AppImageLayout packageLayout, String menuGroupName, Optional<String> category, Optional<String> additionalDependencies, Optional<String> release, String arch)
extends Record
implements LinuxPackageMixin
Default implementation of
LinuxPackageMixin
interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.LinuxPackageMixin
LinuxPackageMixin.Stub
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalDependencies
record component.arch()
Returns the value of thearch
record component.category()
Returns the value of thecategory
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themenuGroupName
record component.Returns the value of thepackageLayout
record component.release()
Returns the value of therelease
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Stub
public Stub(AppImageLayout packageLayout, String menuGroupName, Optional<String> category, Optional<String> additionalDependencies, Optional<String> release, String arch) Creates an instance of aStub
record class.- Parameters:
packageLayout
- the value for thepackageLayout
record componentmenuGroupName
- the value for themenuGroupName
record componentcategory
- the value for thecategory
record componentadditionalDependencies
- the value for theadditionalDependencies
record componentrelease
- the value for therelease
record componentarch
- the value for thearch
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
packageLayout
Returns the value of thepackageLayout
record component.- Specified by:
packageLayout
in interfaceLinuxPackageMixin
- Returns:
- the value of the
packageLayout
record component
-
category
Returns the value of thecategory
record component.- Specified by:
category
in interfaceLinuxPackageMixin
- Returns:
- the value of the
category
record component
-
additionalDependencies
Returns the value of theadditionalDependencies
record component.- Specified by:
additionalDependencies
in interfaceLinuxPackageMixin
- Returns:
- the value of the
additionalDependencies
record component
-
release
Returns the value of therelease
record component.- Specified by:
release
in interfaceLinuxPackageMixin
- Returns:
- the value of the
release
record component
-
arch
Returns the value of thearch
record component.- Specified by:
arch
in interfaceLinuxPackageMixin
- Returns:
- the value of the
arch
record component
-