Record Class DiscoPackage
java.lang.Object
java.lang.Record
com.dua3.gradle.jdkprovider.types.DiscoPackage
- Record Components:
downloadUri- the URI from which the package can be downloadedsha256- the SHA-256 checksum of the package, useful for verifying file integritydistribution- the name of the distribution or source associated with the packagearchiveType- the type of archive (e.g., "zip", "tar.gz") that the package is stored infilename- the filename of the package as it would appear when downloadedversion- the version specification of the packageos- the operating system family for which this package is designedarchitecture- the system architecture that this package is compatible withlibcType- the type of C library (e.g., "musl", "glibc") that the package is compatible with
public record DiscoPackage(URI downloadUri, String sha256, String distribution, String archiveType, String filename, Runtime.Version version, OSFamily os, SystemArchitecture architecture, String libcType)
extends Record
Represents a package containing information about a downloadable asset, such as
its URI, checksum, distribution details, archive type, and compatibility with a
specific operating system and architecture.
Instances of this record can be used to encapsulate metadata for software packages or other distributable artifacts.
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoPackage(URI downloadUri, String sha256, String distribution, String archiveType, String filename, Runtime.Version version, OSFamily os, SystemArchitecture architecture, String libcType) Creates an instance of aDiscoPackagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearchitecturerecord component.Returns the value of thearchiveTyperecord component.Returns the value of thedistributionrecord component.Returns the value of thedownloadUrirecord component.final booleanIndicates whether some other object is "equal to" this one.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.libcType()Returns the value of thelibcTyperecord component.os()Returns the value of theosrecord component.sha256()Returns the value of thesha256record component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
DiscoPackage
public DiscoPackage(URI downloadUri, String sha256, String distribution, String archiveType, String filename, Runtime.Version version, OSFamily os, SystemArchitecture architecture, String libcType) Creates an instance of aDiscoPackagerecord class.- Parameters:
downloadUri- the value for thedownloadUrirecord componentsha256- the value for thesha256record componentdistribution- the value for thedistributionrecord componentarchiveType- the value for thearchiveTyperecord componentfilename- the value for thefilenamerecord componentversion- the value for theversionrecord componentos- the value for theosrecord componentarchitecture- the value for thearchitecturerecord componentlibcType- the value for thelibcTyperecord component
-
-
Method Details
-
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). -
downloadUri
Returns the value of thedownloadUrirecord component.- Returns:
- the value of the
downloadUrirecord component
-
sha256
Returns the value of thesha256record component.- Returns:
- the value of the
sha256record component
-
distribution
Returns the value of thedistributionrecord component.- Returns:
- the value of the
distributionrecord component
-
archiveType
Returns the value of thearchiveTyperecord component.- Returns:
- the value of the
archiveTyperecord component
-
filename
Returns the value of thefilenamerecord component.- Returns:
- the value of the
filenamerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
os
Returns the value of theosrecord component.- Returns:
- the value of the
osrecord component
-
architecture
Returns the value of thearchitecturerecord component.- Returns:
- the value of the
architecturerecord component
-
libcType
Returns the value of thelibcTyperecord component.- Returns:
- the value of the
libcTyperecord component
-