public class OracleVersion extends Version
$MAJOR.$MINOR.$SECURITY.$PATCH
$PATCH
--- The patch level, incremented
for a release containing security and high-priority customer fixes which
have been tested together. $PATCH
is reset to zero when $SECURITY
, $MINOR
, or $MAJOR
are incremented. $PATCH
is included in the short version string if it is not zero.
The version string is as defined in Version
with the
following addenda:
Modifier and Type | Method and Description |
---|---|
static OracleVersion |
parse(String s)
Parses the given string as a valid Oracle JDK version string containing a version
number which may include a patch number
followed by pre-release and build information.
|
int |
patch()
Returns the patch version number or zero if
it was not set.
|
public static OracleVersion parse(String s)
s
- A string to interpret as an versionIllegalArgumentException
- If the given string cannot be interpreted a valid versionNullPointerException
- If the given string is null
NumberFormatException
- If an element of the version number or the build number cannot
be represented as an Integer
public int patch()
Copyright © 2005, 2015, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2015-11-24-140240.iclark.api