Class JarVersionedRuntimes
java.lang.Object
org.apache.maven.shared.jar.classes.JarVersionedRuntimes
Gathered facts about the runtime versions contained within a Multi-Release JAR file.
- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionJarVersionedRuntimes(NavigableMap<Integer, JarVersionedRuntime> versionedRuntimeMap)  - 
Method Summary
Modifier and TypeMethodDescriptiongetBestFitJarVersionedRuntime(Integer version) Return the highest the JarClasses of the Jdk version that would be executed if they would be executed on a JVM given by the release parameter.Return the highest the JarClasses of the Jdk version that would be executed if they would be executed given a System property.getJarClasses(Integer version) Return the JarClasses associated to the release.getJarVersionedRuntime(Integer version) Get a set of release versions included in the JAR file. 
- 
Constructor Details
 - 
Method Details
- 
getVersionedRuntimeMap
- Returns:
 - the versionedRuntimeMap
 
 - 
getJarVersionedRuntime
 - 
getJarClasses
Return the JarClasses associated to the release.- Parameters:
 version- the release version.- Returns:
 - the JarClasses.
 
 - 
getRuntimeVersionsAsSet
Get a set of release versions included in the JAR file.- Returns:
 - a set with the Java versions as Strings.
 
 - 
getBestFitJarVersionedRuntime
Return the highest the JarClasses of the Jdk version that would be executed if they would be executed on a JVM given by the release parameter.- Parameters:
 version- the Jdk version number of the executing JVM.- Returns:
 - The fittest JarClasses object matching if found one, or null otherwise.
 - Throws:
 NullPointerException- if release is null.
 - 
getBestFitJarVersionedRuntimeBySystemProperty
Return the highest the JarClasses of the Jdk version that would be executed if they would be executed given a System property. Example values: "java.version.specification" or "java.vm.specification.version".- Parameters:
 key- the System property.- Returns:
 - The best fitting JarClasses object matching if found one, or null otherwise.
 - Throws:
 NullPointerException- if key is nullIllegalStateException- if system property value of key is nullIllegalStateException- if system property cannot be converted to Integer
 
 -