APIdia Launch Partner
Top Description Inners Methods
jdk.jpackage.internal.model

public Interface LinuxPackageMixin

Known Direct Subinterfaces
jdk.jpackage.internal.model.LinuxPackage
Known Direct Implementers
jdk.jpackage.internal.model.LinuxPackageMixin.Stub
Imports
java.util.Optional

Details of Linux package.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static record
LinuxPackageMixin.Stub

Default implementation of LinuxPackageMixin interface.

Method Summary

Modifier and TypeMethod and Description
public Optional<String>

Returns:

a string with the additional dependencies of this package
additionalDependencies
()

Gets a string with the additional dependencies of this package.

public String

Returns:

the platform architecture of this package
arch
()

Gets the platform architecture of this package.

public Optional<String>

Returns:

the category of this package
category
()

Gets the category of this package.

public Optional<String>

Returns:

the release of this package
release
()

Gets the release of this package.

Method Detail

additionalDependenciesback to summary
public Optional<String> additionalDependencies()

Gets a string with the additional dependencies of this package. Returns an empty Optional instance if this package has no additional dependencies.

Returns:Optional<String>

a string with the additional dependencies of this package

archback to summary
public String arch()

Gets the platform architecture of this package.

Returns:String

the platform architecture of this package

categoryback to summary
public Optional<String> category()

Gets the category of this package.

For RPM packages this is the value of the optional "Group" property.

For DEB packages this is the value of the mandatory "Section" property. The present list of recognized values.

Returns:Optional<String>

the category of this package

releaseback to summary
public Optional<String> release()

Gets the release of this package. Returns an empty Optional instance if this package doesn't have a release.

For RPM packages, this is the value of the "Release" property in spec file. RPM packages always have a release.

For DEB packages, this is an optional debian_revision component of a package version. See https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-version#.

Returns:Optional<String>

the release of this package

jdk.jpackage.internal.model back to summary

public final Record LinuxPackageMixin.Stub

extends Record
implements LinuxPackageMixin
Class Inheritance
All Implemented Interfaces
jdk.jpackage.internal.model.LinuxPackageMixin
Record Components
menuGroupName:String 
category:Optional<String> 
additionalDependencies:Optional<String> 
release:Optional<String> 
arch:String 

Default implementation of LinuxPackageMixin interface.

Field Summary

Modifier and TypeField and Description
private final Optional<String>
additionalDependencies

Record Component accessed by additionalDependencies().

private final String
arch

Record Component accessed by arch().

private final Optional<String>
category

Record Component accessed by category().

private final String
menuGroupName

Record Component accessed by menuGroupName().

private final Optional<String>
release

Record Component accessed by release().

Constructor Summary

AccessConstructor and Description
public
Stub(String menuGroupName, Optional<String> category, Optional<String> additionalDependencies, Optional<String> release, String arch)

Method Summary

Modifier and TypeMethod and Description
public Optional<String>
additionalDependencies()

Record Component getter of additionalDependencies.

Implements jdk.jpackage.internal.model.LinuxPackageMixin.additionalDependencies.

Gets a string with the additional dependencies of this package.

public String
arch()

Record Component getter of arch.

Implements jdk.jpackage.internal.model.LinuxPackageMixin.arch.

Gets the platform architecture of this package.

public Optional<String>
category()

Record Component getter of category.

Implements jdk.jpackage.internal.model.LinuxPackageMixin.category.

Gets the category of this package.

public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
menuGroupName()

Record Component getter of menuGroupName.

Implements jdk.jpackage.internal.model.LinuxPackageMixin.menuGroupName.

Gets the name of the start menu group where to create shortcuts for application launchers of this package.

public Optional<String>
release()

Record Component getter of release.

Implements jdk.jpackage.internal.model.LinuxPackageMixin.release.

Gets the release of this package.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

additionalDependenciesback to summary
private final Optional<String> additionalDependencies

Record Component accessed by additionalDependencies().

archback to summary
private final String arch

Record Component accessed by arch().

categoryback to summary
private final Optional<String> category

Record Component accessed by category().

menuGroupNameback to summary
private final String menuGroupName

Record Component accessed by menuGroupName().

releaseback to summary
private final Optional<String> release

Record Component accessed by release().

Constructor Detail

Stubback to summary
public Stub(String menuGroupName, Optional<String> category, Optional<String> additionalDependencies, Optional<String> release, String arch)

Method Detail

additionalDependenciesback to summary
public Optional<String> additionalDependencies()

Record Component getter of additionalDependencies.

Implements jdk.jpackage.internal.model.LinuxPackageMixin.additionalDependencies.

Doc from jdk.jpackage.internal.model.LinuxPackageMixin.additionalDependencies.

Gets a string with the additional dependencies of this package. Returns an empty Optional instance if this package has no additional dependencies.

archback to summary
public String arch()

Record Component getter of arch.

Implements jdk.jpackage.internal.model.LinuxPackageMixin.arch.

Doc from jdk.jpackage.internal.model.LinuxPackageMixin.arch.

Gets the platform architecture of this package.

categoryback to summary
public Optional<String> category()

Record Component getter of category.

Implements jdk.jpackage.internal.model.LinuxPackageMixin.category.

Doc from jdk.jpackage.internal.model.LinuxPackageMixin.category.

Gets the category of this package.

For RPM packages this is the value of the optional "Group" property.

For DEB packages this is the value of the mandatory "Section" property. The present list of recognized values.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

menuGroupNameback to summary
public String menuGroupName()

Record Component getter of menuGroupName.

Implements jdk.jpackage.internal.model.LinuxPackageMixin.menuGroupName.

Doc from jdk.jpackage.internal.model.LinuxPackageMixin.menuGroupName.

Gets the name of the start menu group where to create shortcuts for application launchers of this package.

It sets the value of the "Categories" property in .desktop files of the package.

Should be one of the values from https://specifications.freedesktop.org/menu/latest/category-registry.html

releaseback to summary
public Optional<String> release()

Record Component getter of release.

Implements jdk.jpackage.internal.model.LinuxPackageMixin.release.

Doc from jdk.jpackage.internal.model.LinuxPackageMixin.release.

Gets the release of this package. Returns an empty Optional instance if this package doesn't have a release.

For RPM packages, this is the value of the "Release" property in spec file. RPM packages always have a release.

For DEB packages, this is an optional debian_revision component of a package version. See https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-version#.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.