Package dev.treset.mcdl.java
Class JavaRuntimes
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Map<String, List<JavaRuntimeRelease>>>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaRuntimesstatic JavaRuntimesget()Gets a map of all available java runtimesgetOsReleases(String os) Gets a map of all available java runtimes for a specified osgetReleases(String os, String version) Gets a list of all available java runtimes for a specified os and versionMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
JavaRuntimes
-
-
Method Details
-
fromJson
- Throws:
dev.treset.mcdl.json.SerializationException
-
get
Gets a map of all available java runtimes- Returns:
- A map of java runtimes. Structure: {os_identifier: {version_id: [release]}}
- Throws:
dev.treset.mcdl.exception.FileDownloadException- If there is an error downloading or parsing the runtimes
-
getOsReleases
Gets a map of all available java runtimes for a specified os- Parameters:
os- The os identifier- Returns:
- A map of java runtimes for the specified os. Structure: {version_id: [release]}
-
getReleases
Gets a list of all available java runtimes for a specified os and version- Parameters:
os- The os identifierversion- The version identifier- Returns:
- A list of java runtimes for the specified os and version
-