Package com.ultikits.ultitools.utils
Class CatalogueClient.Version
java.lang.Object
com.ultikits.ultitools.utils.CatalogueClient.Version
- Enclosing class:
CatalogueClient
One version of one module, as the catalogue describes it.
- Since:
- 6.3.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
version
-
latest
private final boolean latest -
sha256
-
sizeBytes
private final long sizeBytes -
apiLevel
-
downloadKind
-
downloadUrl
-
-
Constructor Details
-
Version
-
-
Method Details
-
version
String version()- Returns:
- the version string
-
latest
boolean latest()- Returns:
- whether the catalogue marks it as the module's newest version
-
sha256
String sha256()- Returns:
- the
sha256: 64 lower-case hex characters, as the contract requires
-
sizeBytes
long sizeBytes()- Returns:
- the
sizeBytes: at least 1, as the contract requires
-
apiLevel
Integer apiLevel()- Returns:
- the integer
apiLevel, ornullwhen the catalogue named none
-
downloadKind
String downloadKind()- Returns:
- the
download.kind:public,license_required,withdrawnor a later one
-
downloadUrl
String downloadUrl()- Returns:
- the
download.urlas written, ornullwhen there is none
-
downloadable
boolean downloadable()- Returns:
- whether this version offers a public download
-