枚举类的使用
org.springframework.boot.system.JavaVersion
使用JavaVersion的程序包
-
org.springframework.boot.system中JavaVersion的使用
修饰符和类型方法说明static JavaVersionJavaVersion.getJavaVersion()Returns theJavaVersionof the current runtime.static JavaVersion返回带有指定名称的该类的枚举常量。static JavaVersion[]JavaVersion.values()返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同修饰符和类型方法说明booleanJavaVersion.isEqualOrNewerThan(JavaVersion version) Return if this version is equal to or newer than a given version.booleanJavaVersion.isOlderThan(JavaVersion version) Return if this version is older than a given version.