Class CatalogueClient.Version

java.lang.Object
com.ultikits.ultitools.utils.CatalogueClient.Version
Enclosing class:
CatalogueClient

static final class CatalogueClient.Version extends Object
One version of one module, as the catalogue describes it.
Since:
6.3.1
  • Field Details

    • version

      private final String version
    • latest

      private final boolean latest
    • sha256

      private final String sha256
    • sizeBytes

      private final long sizeBytes
    • apiLevel

      private final Integer apiLevel
    • downloadKind

      private final String downloadKind
    • downloadUrl

      private final String downloadUrl
  • Constructor Details

    • Version

      private Version(String version, boolean latest, String sha256, long sizeBytes, Integer apiLevel, String downloadKind, String downloadUrl)
  • 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, or null when the catalogue named none
    • downloadKind

      String downloadKind()
      Returns:
      the download.kind: public, license_required, withdrawn or a later one
    • downloadUrl

      String downloadUrl()
      Returns:
      the download.url as written, or null when there is none
    • downloadable

      boolean downloadable()
      Returns:
      whether this version offers a public download