Package org.pkl.core.project
Record Class Package
java.lang.Object
java.lang.Record
org.pkl.core.project.Package
public record Package(String name, PackageUri uri, Version version, URI packageZipUrl, @Nullable String description, List<String> authors, @Nullable URI website, @Nullable URI documentation, @Nullable URI sourceCode, @Nullable String sourceCodeUrlScheme, @Nullable String license, @Nullable String licenseText, @Nullable URI issueTracker, List<Path> apiTests, List<String> exclude)
extends Record
Java representation of class
pkl.Project#Package-
Constructor Summary
ConstructorsConstructorDescriptionPackage(String name, PackageUri uri, Version version, URI packageZipUrl, @Nullable String description, List<String> authors, @Nullable URI website, @Nullable URI documentation, @Nullable URI sourceCode, @Nullable String sourceCodeUrlScheme, @Nullable String license, @Nullable String licenseText, @Nullable URI issueTracker, List<Path> apiTests, List<String> exclude) Creates an instance of aPackagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionapiTests()Returns the value of theapiTestsrecord component.authors()Returns the value of theauthorsrecord component.Returns the value of thedescriptionrecord component.Returns the value of thedocumentationrecord component.final booleanIndicates whether some other object is "equal to" this one.exclude()Returns the value of theexcluderecord component.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byauthors().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bydescription().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bydocumentation().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byexclude().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byissueTracker().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bylicense().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bylicenseText().getName()Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byname().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bypackageZipUrl().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bysourceCode().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bysourceCodeUrlScheme().getUri()Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byuri().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byversion().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bywebsite().final inthashCode()Returns a hash code value for this object.Returns the value of theissueTrackerrecord component.license()Returns the value of thelicenserecord component.Returns the value of thelicenseTextrecord component.name()Returns the value of thenamerecord component.Returns the value of thepackageZipUrlrecord component.Returns the value of thesourceCoderecord component.Returns the value of thesourceCodeUrlSchemerecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.version()Returns the value of theversionrecord component.website()Returns the value of thewebsiterecord component.
-
Constructor Details
-
Package
public Package(String name, PackageUri uri, Version version, URI packageZipUrl, @Nullable @Nullable String description, List<String> authors, @Nullable @Nullable URI website, @Nullable @Nullable URI documentation, @Nullable @Nullable URI sourceCode, @Nullable @Nullable String sourceCodeUrlScheme, @Nullable @Nullable String license, @Nullable @Nullable String licenseText, @Nullable @Nullable URI issueTracker, List<Path> apiTests, List<String> exclude) Creates an instance of aPackagerecord class.- Parameters:
name- the value for thenamerecord componenturi- the value for theurirecord componentversion- the value for theversionrecord componentpackageZipUrl- the value for thepackageZipUrlrecord componentdescription- the value for thedescriptionrecord componentauthors- the value for theauthorsrecord componentwebsite- the value for thewebsiterecord componentdocumentation- the value for thedocumentationrecord componentsourceCode- the value for thesourceCoderecord componentsourceCodeUrlScheme- the value for thesourceCodeUrlSchemerecord componentlicense- the value for thelicenserecord componentlicenseText- the value for thelicenseTextrecord componentissueTracker- the value for theissueTrackerrecord componentapiTests- the value for theapiTestsrecord componentexclude- the value for theexcluderecord component
-
-
Method Details
-
getName
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byname(). -
getUri
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byuri(). -
getVersion
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byversion(). -
getPackageZipUrl
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bypackageZipUrl(). -
getDescription
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bydescription(). -
getAuthors
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byauthors(). -
getWebsite
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bywebsite(). -
getDocumentation
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bydocumentation(). -
getSourceCode
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bysourceCode(). -
getSourceCodeUrlScheme
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bysourceCodeUrlScheme(). -
getLicenseText
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bylicenseText(). -
getLicense
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bylicense(). -
getIssueTracker
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byissueTracker(). -
getApiTests
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byapiTests(). -
getExclude
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byexclude(). -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
packageZipUrl
Returns the value of thepackageZipUrlrecord component.- Returns:
- the value of the
packageZipUrlrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
authors
Returns the value of theauthorsrecord component.- Returns:
- the value of the
authorsrecord component
-
website
Returns the value of thewebsiterecord component.- Returns:
- the value of the
websiterecord component
-
documentation
Returns the value of thedocumentationrecord component.- Returns:
- the value of the
documentationrecord component
-
sourceCode
Returns the value of thesourceCoderecord component.- Returns:
- the value of the
sourceCoderecord component
-
sourceCodeUrlScheme
Returns the value of thesourceCodeUrlSchemerecord component.- Returns:
- the value of the
sourceCodeUrlSchemerecord component
-
license
Returns the value of thelicenserecord component.- Returns:
- the value of the
licenserecord component
-
licenseText
Returns the value of thelicenseTextrecord component.- Returns:
- the value of the
licenseTextrecord component
-
issueTracker
Returns the value of theissueTrackerrecord component.- Returns:
- the value of the
issueTrackerrecord component
-
apiTests
Returns the value of theapiTestsrecord component.- Returns:
- the value of the
apiTestsrecord component
-
exclude
Returns the value of theexcluderecord component.- Returns:
- the value of the
excluderecord component
-
apiTests().