Package com.mchange.v2.lang
Class VersionUtils
java.lang.Object
com.mchange.v2.lang.VersionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int[]
extractVersionNumberArray
(String versionString) static int[]
extractVersionNumberArray
(String versionString, String delims) static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
isJava10()
static boolean
isJava11()
static boolean
isJava12()
static boolean
isJava13()
static boolean
isJava5()
static boolean
isJava6()
static boolean
isJava7()
static boolean
isJava8()
static boolean
isJava9()
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
static boolean
Deprecated.ambiguous between "one dot zero" and "ten"static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
Deprecated.ambiguous between "one dot x" and "x"static boolean
Deprecated.ambiguous between "one dot x" and "x"static Integer
-
Constructor Details
-
VersionUtils
public VersionUtils()
-
-
Method Details
-
jvmNumberOfBits
- Returns:
- null if unknown, an Integer (as of 2006 always 32 or 64) otherwise
-
isJavaVersion1_0
public static boolean isJavaVersion1_0() -
isJavaVersion1_1
public static boolean isJavaVersion1_1() -
isJavaVersion1_2
public static boolean isJavaVersion1_2() -
isJavaVersion1_3
public static boolean isJavaVersion1_3() -
isJavaVersion1_4
public static boolean isJavaVersion1_4() -
isJavaVersion1_5
public static boolean isJavaVersion1_5() -
isJavaVersion1_6
public static boolean isJavaVersion1_6() -
isJavaVersion1_7
public static boolean isJavaVersion1_7() -
isJavaVersion1_8
public static boolean isJavaVersion1_8() -
isJavaVersion1_9
public static boolean isJavaVersion1_9() -
isJava5
public static boolean isJava5() -
isJava6
public static boolean isJava6() -
isJava7
public static boolean isJava7() -
isJava8
public static boolean isJava8() -
isJava9
public static boolean isJava9() -
isJava10
public static boolean isJava10() -
isJava11
public static boolean isJava11() -
isJava12
public static boolean isJava12() -
isJava13
public static boolean isJava13() -
isAtLeastJavaVersion1_0
public static boolean isAtLeastJavaVersion1_0() -
isAtLeastJavaVersion1_1
public static boolean isAtLeastJavaVersion1_1() -
isAtLeastJavaVersion1_2
public static boolean isAtLeastJavaVersion1_2() -
isAtLeastJavaVersion1_3
public static boolean isAtLeastJavaVersion1_3() -
isAtLeastJavaVersion1_4
public static boolean isAtLeastJavaVersion1_4() -
isAtLeastJavaVersion1_5
public static boolean isAtLeastJavaVersion1_5() -
isAtLeastJavaVersion1_6
public static boolean isAtLeastJavaVersion1_6() -
isAtLeastJavaVersion1_7
public static boolean isAtLeastJavaVersion1_7() -
isAtLeastJavaVersion1_8
public static boolean isAtLeastJavaVersion1_8() -
isAtLeastJavaVersion1_9
public static boolean isAtLeastJavaVersion1_9() -
isAtLeastJava5
public static boolean isAtLeastJava5() -
isAtLeastJava6
public static boolean isAtLeastJava6() -
isAtLeastJava7
public static boolean isAtLeastJava7() -
isAtLeastJava8
public static boolean isAtLeastJava8() -
isAtLeastJava9
public static boolean isAtLeastJava9() -
isAtLeastJava10
public static boolean isAtLeastJava10() -
isAtLeastJava11
public static boolean isAtLeastJava11() -
isAtLeastJava12
public static boolean isAtLeastJava12() -
isAtLeastJava13
public static boolean isAtLeastJava13() -
isJavaVersion10
public static boolean isJavaVersion10()Deprecated.ambiguous between "one dot zero" and "ten" -
isJavaVersion11
public static boolean isJavaVersion11()Deprecated.ambiguous between "one dot x" and "x" -
isJavaVersion12
public static boolean isJavaVersion12()Deprecated.ambiguous between "one dot x" and "x" -
isJavaVersion13
public static boolean isJavaVersion13()Deprecated.ambiguous between "one dot x" and "x" -
isJavaVersion14
public static boolean isJavaVersion14()Deprecated.ambiguous between "one dot x" and "x" -
isJavaVersion15
public static boolean isJavaVersion15()Deprecated.ambiguous between "one dot x" and "x" -
isAtLeastJavaVersion10
public static boolean isAtLeastJavaVersion10()Deprecated.ambiguous between "one dot x" and "x" -
isAtLeastJavaVersion11
public static boolean isAtLeastJavaVersion11()Deprecated.ambiguous between "one dot x" and "x" -
isAtLeastJavaVersion12
public static boolean isAtLeastJavaVersion12()Deprecated.ambiguous between "one dot x" and "x" -
isAtLeastJavaVersion13
public static boolean isAtLeastJavaVersion13()Deprecated.ambiguous between "one dot x" and "x" -
isAtLeastJavaVersion14
public static boolean isAtLeastJavaVersion14()Deprecated.ambiguous between "one dot x" and "x" -
isAtLeastJavaVersion15
public static boolean isAtLeastJavaVersion15()Deprecated.ambiguous between "one dot x" and "x" -
isAtLeastJavaVersion16
public static boolean isAtLeastJavaVersion16()Deprecated.ambiguous between "one dot x" and "x" -
isAtLeastJavaVersion17
public static boolean isAtLeastJavaVersion17()Deprecated.ambiguous between "one dot x" and "x" -
extractVersionNumberArray
- Throws:
NumberFormatException
-
extractVersionNumberArray
public static int[] extractVersionNumberArray(String versionString, String delims) throws NumberFormatException - Throws:
NumberFormatException
-