Record Class RegistryClient.ArchivedFile
java.lang.Object
java.lang.Record
io.jenkins.plugins.oras_artifacts.RegistryClient.ArchivedFile
- Record Components:
path- the archived path, relative to the artifacts rootmanifestDigest- the digest of the file's own (referrer) manifestlayer- the single content layer of the file
- Enclosing class:
RegistryClient
public static record RegistryClient.ArchivedFile(String path, String manifestDigest, land.oras.Layer layer)
extends Record
A file archived as a referrer of a build root artifact.
-
Constructor Summary
ConstructorsConstructorDescriptionArchivedFile(String path, String manifestDigest, land.oras.Layer layer) Creates an instance of aArchivedFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.land.oras.Layerlayer()Returns the value of thelayerrecord component.Returns the value of themanifestDigestrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArchivedFile
Creates an instance of aArchivedFilerecord class.- Parameters:
path- the value for thepathrecord componentmanifestDigest- the value for themanifestDigestrecord componentlayer- the value for thelayerrecord 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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
manifestDigest
Returns the value of themanifestDigestrecord component.- Returns:
- the value of the
manifestDigestrecord component
-
layer
public land.oras.Layer layer()Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-