Package com.sforce.ws
Class JavaVersion
java.lang.Object
com.sforce.ws.JavaVersion
- All Implemented Interfaces:
Comparable<JavaVersion>
This class represents a semantic java version that can parse a string into different semantic version components
(feature, interim, patch, update and build) and can compare two versions based on these components.
- Author:
- arjun.mehrotra
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(JavaVersion that) intgetBuild()intintgetPatch()intstatic booleanjavaVersionHasABug(String runtimeVersion) Check if the provided java version has been patched for the bug JDK-8209178.static JavaVersiontoString()
-
Field Details
-
VERSION_PARSE_ERROR
- See Also:
-
INVALID_FEATURE_VALUE_ERROR
- See Also:
-
JAVA_VERSION_PROPERTY
- See Also:
-
JDK_UPDATE_MESSAGE
- See Also:
-
-
Method Details
-
parse
-
javaVersionHasABug
Check if the provided java version has been patched for the bug JDK-8209178. Refer JDK-8209178 to get the list of java versions that have fixed the bug.- Parameters:
runtimeVersion- java version- Returns:
- true, if the java version has been patched for the bug, false otherwise
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaVersion>
-
getFeature
-
getInterim
public int getInterim() -
getUpdate
public int getUpdate() -
getPatch
public int getPatch() -
getBuild
public int getBuild() -
toString
-