类 VersionUtils
- java.lang.Object
-
- io.microsphere.util.BaseUtils
-
- io.microsphere.util.VersionUtils
-
-
字段概要
字段 修饰符和类型 字段 说明 static Version
CURRENT_JAVA_VERSION
TheVersion
instance for current Java Versionstatic Version
JAVA_VERSION_10
TheVersion
instance for Java 10static Version
JAVA_VERSION_11
TheVersion
instance for Java 11static Version
JAVA_VERSION_12
TheVersion
instance for Java 12static Version
JAVA_VERSION_13
TheVersion
instance for Java 13static Version
JAVA_VERSION_14
TheVersion
instance for Java 14static Version
JAVA_VERSION_15
TheVersion
instance for Java 15static Version
JAVA_VERSION_16
TheVersion
instance for Java 16static Version
JAVA_VERSION_17
TheVersion
instance for Java 17static Version
JAVA_VERSION_18
TheVersion
instance for Java 18static Version
JAVA_VERSION_19
TheVersion
instance for Java 19static Version
JAVA_VERSION_20
TheVersion
instance for Java 20static Version
JAVA_VERSION_21
TheVersion
instance for Java 21static Version
JAVA_VERSION_22
TheVersion
instance for Java 22static Version
JAVA_VERSION_8
TheVersion
instance for Java 8static Version
JAVA_VERSION_9
TheVersion
instance for Java 9static javax.lang.model.SourceVersion
LATEST_JAVA_VERSION
The latestJava Release Version
-
构造器概要
构造器 构造器 说明 VersionUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static boolean
testCurrentJavaVersion(Version comparedVersion, Version.Operator versionOperator)
Determine whether the current Java version matches the specified version
-
-
-
方法详细资料
-
testCurrentJavaVersion
public static boolean testCurrentJavaVersion(Version comparedVersion, Version.Operator versionOperator)
Determine whether the current Java version matches the specified version- 参数:
comparedVersion
- theVersion
to be comparedversionOperator
- theVersion.Operator
- 返回:
true
ifVersion.Operator
matches
current version
andcomparedVersion
-
-