public class JarVersionedRuntimes extends Object
| Constructor and Description |
|---|
JarVersionedRuntimes(NavigableMap<Integer,JarVersionedRuntime> versionedRuntimeMap) |
| Modifier and Type | Method and Description |
|---|---|
JarVersionedRuntime |
getBestFitJarVersionedRuntime(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.
|
JarVersionedRuntime |
getBestFitJarVersionedRuntimeBySystemProperty(String key)
Return the highest the JarClasses of the Jdk version that would be executed if they would be executed given a System property.
|
JarClasses |
getJarClasses(Integer version)
Return the JarClasses associated to the release.
|
JarVersionedRuntime |
getJarVersionedRuntime(Integer version) |
Set<Integer> |
getRuntimeVersionsAsSet()
Get a set of release versions included in the JAR file.
|
NavigableMap<Integer,JarVersionedRuntime> |
getVersionedRuntimeMap() |
public JarVersionedRuntimes(NavigableMap<Integer,JarVersionedRuntime> versionedRuntimeMap)
public NavigableMap<Integer,JarVersionedRuntime> getVersionedRuntimeMap()
public JarVersionedRuntime getJarVersionedRuntime(Integer version)
public JarClasses getJarClasses(Integer version)
version - the release version.public Set<Integer> getRuntimeVersionsAsSet()
public JarVersionedRuntime getBestFitJarVersionedRuntime(Integer version)
version - the Jdk version number of the executing JVM.NullPointerException - if release is null.public JarVersionedRuntime getBestFitJarVersionedRuntimeBySystemProperty(String key)
key - the System property.NullPointerException - if key is nullIllegalStateException - if system property value of key is nullIllegalStateException - if system property cannot be converted to IntegerCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.