Package org.elasticsearch.jdk
Class JavaVersion
java.lang.Object
org.elasticsearch.jdk.JavaVersion
- All Implemented Interfaces:
Comparable<JavaVersion>
-
Method Summary
Modifier and TypeMethodDescriptionintstatic JavaVersioncurrent()booleaninthashCode()static booleanstatic JavaVersionParses the Java version as it can be retrieved as the value of java.version or java.specification.version according to JEP 223.toString()
-
Method Details
-
getVersion
-
parse
Parses the Java version as it can be retrieved as the value of java.version or java.specification.version according to JEP 223.- Parameters:
value- The version String
-
isValid
-
current
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaVersion>
-
equals
-
hashCode
public int hashCode() -
toString
-