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 TypeMethodDescriptionbooleangetHash()Return the full hash of the kab.Return the identifier of the kab.Return the miniHash of the kab.getName()longgetSize()Return the size of the kab.inthashCode()voidvoidsetIdentifier(String identifier) voidsetMiniHash(String miniHash) voidvoidsetSize(long size) voidsetVersion(String version) toString()
-
Constructor Details
-
BaseManifestArtifact
public BaseManifestArtifact()
-
-
Method Details
-
getIdentifier
Description copied from interface:ManifestArtifactReturn the identifier of the kab.- Specified by:
getIdentifierin interfaceManifestArtifact
-
getMiniHash
Description copied from interface:ManifestArtifactReturn the miniHash of the kab.- Specified by:
getMiniHashin interfaceManifestArtifact
-
getHash
Description copied from interface:ManifestArtifactReturn the full hash of the kab.- Specified by:
getHashin interfaceManifestArtifact
-
getSize
public long getSize()Description copied from interface:ManifestArtifactReturn the size of the kab.- Specified by:
getSizein interfaceManifestArtifact
-
getName
-
getVersion
-
setIdentifier
-
setMiniHash
-
setHash
-
setSize
public void setSize(long size) -
setName
-
setVersion
-
equals
-
hashCode
public int hashCode() -
toString
-