Package org.nuxeo.launcher.config
Class JVMVersion
- java.lang.Object
-
- org.nuxeo.launcher.config.JVMVersion
-
- All Implemented Interfaces:
Comparable<JVMVersion>
public class JVMVersion extends Object implements Comparable<JVMVersion>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JVMVersion.UpTo
-
Constructor Summary
Constructors Constructor Description JVMVersion(int major, int minor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(JVMVersion o)
int
compareTo(JVMVersion o, JVMVersion.UpTo upTo)
static JVMVersion
parse(String version)
static JVMVersion
parseJdk9(String version)
static JVMVersion
parsePreJdk9(String version)
String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(JVMVersion o, JVMVersion.UpTo upTo)
-
compareTo
public int compareTo(JVMVersion o)
- Specified by:
compareTo
in interfaceComparable<JVMVersion>
-
parse
public static JVMVersion parse(String version) throws ParseException
- Throws:
ParseException
-
parsePreJdk9
public static JVMVersion parsePreJdk9(String version) throws ParseException
- Throws:
ParseException
-
parseJdk9
public static JVMVersion parseJdk9(String version) throws ParseException
- Throws:
ParseException
-
-