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 theaboutURLrecord component.app()Returns the value of theapprecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelicenseFilerecord component.Returns the value of thepackageNamerecord component.Returns the value of thepredefinedAppImagerecord component.Returns the value of therelativeInstallDirrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.version()Returns the value of theversionrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 aStubrecord class.- Parameters:
app- the value for theapprecord componenttype- the value for thetyperecord componentpackageName- the value for thepackageNamerecord componentdescription- the value for thedescriptionrecord componentversion- the value for theversionrecord componentaboutURL- the value for theaboutURLrecord componentlicenseFile- the value for thelicenseFilerecord componentpredefinedAppImage- the value for thepredefinedAppImagerecord componentrelativeInstallDir- the value for therelativeInstallDirrecord 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 theapprecord component. -
type
Returns the value of thetyperecord component. -
packageName
Returns the value of thepackageNamerecord component.- Specified by:
packageNamein interfacePackage- Returns:
- the value of the
packageNamerecord component
-
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfacePackage- Returns:
- the value of the
descriptionrecord component
-
version
-
aboutURL
-
licenseFile
Returns the value of thelicenseFilerecord component.- Specified by:
licenseFilein interfacePackage- Returns:
- the value of the
licenseFilerecord component
-
predefinedAppImage
Returns the value of thepredefinedAppImagerecord component.- Specified by:
predefinedAppImagein interfacePackage- Returns:
- the value of the
predefinedAppImagerecord component
-
relativeInstallDir
Returns the value of therelativeInstallDirrecord component.- Specified by:
relativeInstallDirin interfacePackage- Returns:
- the value of the
relativeInstallDirrecord component
-