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 Summary
ConstructorsConstructorDescriptionAsJavaCatalogVersionInfo
(com.here.platform.data.client.v2.api.scaladsl.CatalogVersionInfo asScala) -
Method Summary
Modifier and TypeMethodDescriptiondependencies
(long version) Fetches the dependencies of this catalog given a versionFetches the latest version of this catalogresolveCompatibleVersions
(long version, HRN otherHrn) Find the version of a compatible catalog HRNresolveCompatibleVersions
(long version, HRN otherHrn, List<HRN> commonDependencies) Find the version of a compatible catalog HRNresolveDependencyVersion
(long version, HRN otherHrn) Find the version of a catalog in its dependencies
-
Constructor Details
-
AsJavaCatalogVersionInfo
public AsJavaCatalogVersionInfo(com.here.platform.data.client.v2.api.scaladsl.CatalogVersionInfo asScala)
-
-
Method Details
-
dependencies
Description copied from interface:CatalogVersionInfo
Fetches the dependencies of this catalog given a version- Specified by:
dependencies
in interfaceCatalogVersionInfo
- Parameters:
version
- version of this catalog HRN.- Returns:
- the dependencies of this catalog for the specified version.
-
latestVersion
Description copied from interface:CatalogVersionInfo
Fetches the latest version of this catalog- Specified by:
latestVersion
in interfaceCatalogVersionInfo
- Returns:
- the latest version or `OptionalLong.empty()` if no version is available.
-
resolveCompatibleVersions
Description copied from interface:CatalogVersionInfo
Find the version of a compatible catalog HRNTwo 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 interfaceCatalogVersionInfo
- 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 HRNTwo 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 interfaceCatalogVersionInfo
- 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
Description copied from interface:CatalogVersionInfo
Find the version of a catalog in its dependencies- Specified by:
resolveDependencyVersion
in interfaceCatalogVersionInfo
- 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.
-