Record Class Package.Stub
java.lang.Object
java.lang.Record
jdk.jpackage.internal.model.Package.Stub
- All Implemented Interfaces:
Package
- Enclosing interface:
Package
public static record Package.Stub(Application app, PackageType type, String packageName, String description, String version, Optional<String> aboutURL, Optional<Path> licenseFile, Optional<Path> predefinedAppImage, Path relativeInstallDir)
extends Record
implements Package
Default implementation of
Package
interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.Package
Package.Stub
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaboutURL()
Returns the value of theaboutURL
record component.app()
Returns the value of theapp
record component.Returns the value of thedescription
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 thelicenseFile
record component.Returns the value of thepackageName
record component.Returns the value of thepredefinedAppImage
record component.Returns the value of therelativeInstallDir
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.version()
Returns the value of theversion
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface jdk.jpackage.internal.model.Package
appImageLayout, asApplicationLayout, asInstalledPackageApplicationLayout, asPackageApplicationLayout, asStandardPackageType, installedPackageLayout, isRuntimeInstaller, packageFileName, packageFileNameWithSuffix, packageFileSuffix, packageLayout
-
Constructor Details
-
Stub
public Stub(Application app, PackageType type, String packageName, String description, String version, Optional<String> aboutURL, Optional<Path> licenseFile, Optional<Path> predefinedAppImage, Path relativeInstallDir) Creates an instance of aStub
record class.- Parameters:
app
- the value for theapp
record componenttype
- the value for thetype
record componentpackageName
- the value for thepackageName
record componentdescription
- the value for thedescription
record componentversion
- the value for theversion
record componentaboutURL
- the value for theaboutURL
record componentlicenseFile
- the value for thelicenseFile
record componentpredefinedAppImage
- the value for thepredefinedAppImage
record componentrelativeInstallDir
- the value for therelativeInstallDir
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)
. -
app
Returns the value of theapp
record component. -
type
Returns the value of thetype
record component. -
packageName
Returns the value of thepackageName
record component.- Specified by:
packageName
in interfacePackage
- Returns:
- the value of the
packageName
record component
-
description
Returns the value of thedescription
record component.- Specified by:
description
in interfacePackage
- Returns:
- the value of the
description
record component
-
version
-
aboutURL
-
licenseFile
Returns the value of thelicenseFile
record component.- Specified by:
licenseFile
in interfacePackage
- Returns:
- the value of the
licenseFile
record component
-
predefinedAppImage
Returns the value of thepredefinedAppImage
record component.- Specified by:
predefinedAppImage
in interfacePackage
- Returns:
- the value of the
predefinedAppImage
record component
-
relativeInstallDir
Returns the value of therelativeInstallDir
record component.- Specified by:
relativeInstallDir
in interfacePackage
- Returns:
- the value of the
relativeInstallDir
record component
-