Class JavaScalaConverters.AsJavaCatalogVersionInfo

java.lang.Object
com.here.platform.data.client.v2.api.JavaScalaConverters.AsJavaCatalogVersionInfo
All Implemented Interfaces:
CatalogVersionInfo
Enclosing class:
JavaScalaConverters

public static class JavaScalaConverters.AsJavaCatalogVersionInfo extends Object implements CatalogVersionInfo
  • Constructor Details

    • AsJavaCatalogVersionInfo

      public AsJavaCatalogVersionInfo(com.here.platform.data.client.v2.api.scaladsl.CatalogVersionInfo asScala)
  • Method Details

    • dependencies

      public Iterator<VersionDependency> dependencies(long version)
      Description copied from interface: CatalogVersionInfo
      Fetches the dependencies of this catalog given a version
      Specified by:
      dependencies in interface CatalogVersionInfo
      Parameters:
      version - version of this catalog HRN.
      Returns:
      the dependencies of this catalog for the specified version.
    • latestVersion

      public OptionalLong latestVersion()
      Description copied from interface: CatalogVersionInfo
      Fetches the latest version of this catalog
      Specified by:
      latestVersion in interface CatalogVersionInfo
      Returns:
      the latest version or `OptionalLong.empty()` if no version is available.
    • resolveCompatibleVersions

      public Iterator<Long> resolveCompatibleVersions(long version, HRN otherHrn)
      Description copied from interface: CatalogVersionInfo
      Find the version of a compatible catalog HRN

      Two catalogs (HRN, version) are compatible if the version of all their common dependencies is the same (if there are dependencies that are not shared, these are not taken into account).

      Specified by:
      resolveCompatibleVersions in interface CatalogVersionInfo
      Parameters:
      version - version of this catalog HRN.
      otherHrn - HRN of the compatible catalog.
      Returns:
      a list of `compatibleHrn` catalog versions.
    • resolveCompatibleVersions

      public Iterator<Long> resolveCompatibleVersions(long version, HRN otherHrn, List<HRN> commonDependencies)
      Description copied from interface: CatalogVersionInfo
      Find the version of a compatible catalog HRN

      Two catalogs (HRN, version) are compatible if the version of all their common dependencies is the same (if there are dependencies that are not shared, these are not taken into account).

      The last parameter (`dependentHrns`) can be used to specify the HRNs that have to be present in both catalogs as dependencies.

      Specified by:
      resolveCompatibleVersions in interface CatalogVersionInfo
      Parameters:
      version - version of this catalog HRN.
      otherHrn - HRN of the compatible catalog.
      commonDependencies - common dependent HRNs of the two catalogs (if a dependency that is not shared is specified, an empty `Seq` will be returned).
      Returns:
      a list of `compatibleHrn` catalog versions.
    • resolveDependencyVersion

      public OptionalLong resolveDependencyVersion(long version, HRN otherHrn)
      Description copied from interface: CatalogVersionInfo
      Find the version of a catalog in its dependencies
      Specified by:
      resolveDependencyVersion in interface CatalogVersionInfo
      Parameters:
      version - version of this catalog HRN.
      otherHrn - HRN of a catalog depending on this catalog HRN.
      Returns:
      the version of the catalog depending on this catalog HRN, if available.