Package com.mchange.v2.lang
Class VersionUtils
- java.lang.Object
-
- com.mchange.v2.lang.VersionUtils
-
public final class VersionUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description VersionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static int[]
extractVersionNumberArray(java.lang.String versionString)
static int[]
extractVersionNumberArray(java.lang.String versionString, java.lang.String delims)
static boolean
isAtLeastJava10()
static boolean
isAtLeastJava11()
static boolean
isAtLeastJava12()
static boolean
isAtLeastJava13()
static boolean
isAtLeastJava5()
static boolean
isAtLeastJava6()
static boolean
isAtLeastJava7()
static boolean
isAtLeastJava8()
static boolean
isAtLeastJava9()
static boolean
isAtLeastJavaVersion1_0()
static boolean
isAtLeastJavaVersion1_1()
static boolean
isAtLeastJavaVersion1_2()
static boolean
isAtLeastJavaVersion1_3()
static boolean
isAtLeastJavaVersion1_4()
static boolean
isAtLeastJavaVersion1_5()
static boolean
isAtLeastJavaVersion1_6()
static boolean
isAtLeastJavaVersion1_7()
static boolean
isAtLeastJavaVersion1_8()
static boolean
isAtLeastJavaVersion1_9()
static boolean
isAtLeastJavaVersion10()
Deprecated.ambiguous between "one dot x" and "x"static boolean
isAtLeastJavaVersion11()
Deprecated.ambiguous between "one dot x" and "x"static boolean
isAtLeastJavaVersion12()
Deprecated.ambiguous between "one dot x" and "x"static boolean
isAtLeastJavaVersion13()
Deprecated.ambiguous between "one dot x" and "x"static boolean
isAtLeastJavaVersion14()
Deprecated.ambiguous between "one dot x" and "x"static boolean
isAtLeastJavaVersion15()
Deprecated.ambiguous between "one dot x" and "x"static boolean
isAtLeastJavaVersion16()
Deprecated.ambiguous between "one dot x" and "x"static boolean
isAtLeastJavaVersion17()
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
isJavaVersion1_0()
static boolean
isJavaVersion1_1()
static boolean
isJavaVersion1_2()
static boolean
isJavaVersion1_3()
static boolean
isJavaVersion1_4()
static boolean
isJavaVersion1_5()
static boolean
isJavaVersion1_6()
static boolean
isJavaVersion1_7()
static boolean
isJavaVersion1_8()
static boolean
isJavaVersion1_9()
static boolean
isJavaVersion10()
Deprecated.ambiguous between "one dot zero" and "ten"static boolean
isJavaVersion11()
Deprecated.ambiguous between "one dot x" and "x"static boolean
isJavaVersion12()
Deprecated.ambiguous between "one dot x" and "x"static boolean
isJavaVersion13()
Deprecated.ambiguous between "one dot x" and "x"static boolean
isJavaVersion14()
Deprecated.ambiguous between "one dot x" and "x"static boolean
isJavaVersion15()
Deprecated.ambiguous between "one dot x" and "x"static java.lang.Integer
jvmNumberOfBits()
-
-
-
Method Detail
-
jvmNumberOfBits
public static java.lang.Integer 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
public static int[] extractVersionNumberArray(java.lang.String versionString) throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
-
extractVersionNumberArray
public static int[] extractVersionNumberArray(java.lang.String versionString, java.lang.String delims) throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
-
-