Package io.quarkus.devtools.project
Class JavaVersion
- java.lang.Object
-
- io.quarkus.devtools.project.JavaVersion
-
public final class JavaVersion extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_JAVA_VERSIONstatic StringDETECT_JAVA_RUNTIME_VERSIONstatic PatternJAVA_VERSION_PATTERNstatic SortedSet<Integer>JAVA_VERSIONS_LTSstatic intMAX_LTS_SUPPORTED_BY_KOTLINstatic JavaVersionNA
-
Constructor Summary
Constructors Constructor Description JavaVersion(String version)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringcomputeJavaVersion(SourceType sourceType, String inputJavaVersion)static intdetermineBestJavaLtsVersion()static intdetermineBestJavaLtsVersion(int runtimeVersion)booleanequals(Object o)intgetAsInt()StringgetVersion()inthashCode()booleanisEmpty()StringtoString()
-
-
-
Field Detail
-
NA
public static final JavaVersion NA
-
DEFAULT_JAVA_VERSION
public static final int DEFAULT_JAVA_VERSION
- See Also:
- Constant Field Values
-
MAX_LTS_SUPPORTED_BY_KOTLIN
public static final int MAX_LTS_SUPPORTED_BY_KOTLIN
- See Also:
- Constant Field Values
-
DETECT_JAVA_RUNTIME_VERSION
public static final String DETECT_JAVA_RUNTIME_VERSION
- See Also:
- Constant Field Values
-
JAVA_VERSION_PATTERN
public static final Pattern JAVA_VERSION_PATTERN
-
-
Constructor Detail
-
JavaVersion
public JavaVersion(String version)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
getVersion
public String getVersion()
-
getAsInt
public int getAsInt()
-
determineBestJavaLtsVersion
public static int determineBestJavaLtsVersion()
-
determineBestJavaLtsVersion
public static int determineBestJavaLtsVersion(int runtimeVersion)
-
computeJavaVersion
public static String computeJavaVersion(SourceType sourceType, String inputJavaVersion)
-
-