Package com.tccc.kos.commons.manifest
Class BaseManifestArtifact
java.lang.Object
com.tccc.kos.commons.manifest.BaseManifestArtifact
- All Implemented Interfaces:
ManifestArtifact
Base class for describing a kab in a manifest. This is used to describe
both layers and non-layer kabs in a manifest. Since this is primarily
just information from the associated kab, it is unlikely to change much
other than to add more kab related fields. This allows various manifest
formats to share this base implementation or extend it as needed.
- Version:
- 2022-10-15
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getHash()
Return the full hash of the kab.Return the identifier of the kab.Return the miniHash of the kab.getName()
long
getSize()
Return the size of the kab.int
hashCode()
void
void
setIdentifier
(String identifier) void
setMiniHash
(String miniHash) void
void
setSize
(long size) void
setVersion
(String version) toString()
-
Constructor Details
-
BaseManifestArtifact
public BaseManifestArtifact()
-
-
Method Details
-
getIdentifier
Description copied from interface:ManifestArtifact
Return the identifier of the kab.- Specified by:
getIdentifier
in interfaceManifestArtifact
-
getMiniHash
Description copied from interface:ManifestArtifact
Return the miniHash of the kab.- Specified by:
getMiniHash
in interfaceManifestArtifact
-
getHash
Description copied from interface:ManifestArtifact
Return the full hash of the kab.- Specified by:
getHash
in interfaceManifestArtifact
-
getSize
public long getSize()Description copied from interface:ManifestArtifact
Return the size of the kab.- Specified by:
getSize
in interfaceManifestArtifact
-
getName
-
getVersion
-
setIdentifier
-
setMiniHash
-
setHash
-
setSize
public void setSize(long size) -
setName
-
setVersion
-
equals
-
hashCode
public int hashCode() -
toString
-