Parses java versions to extract a consistent set of version parts
| Modifier and Type | Field and Description |
|---|---|
| public static final String | JAVA_TARGET_PLATFORM
Context attribute that can be set to target a different version of the jvm than the current runtime. |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| public static final JavaVersion | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the major number versionReturns the major number version, such as |
| public int | Returns: the micro number versionReturns the micro number version (aka security number), such as |
| public int | Returns: the minor number versionReturns the minor number version, such as |
| public int | Returns: the Java Platform versionReturns the Java Platform version, such as |
| public String | Returns: the string from which this JavaVersion was createdGet the string from which this JavaVersion was created. |
| public static JavaVersion | |
| public String |
| JAVA_TARGET_PLATFORM | back to summary |
|---|---|
| public static final String JAVA_TARGET_PLATFORM Context attribute that can be set to target a different version of the jvm than the current runtime. Acceptable values should correspond to those returned by JavaVersion.getPlatform(). | |
| major | back to summary |
|---|---|
| private final int major | |
| micro | back to summary |
|---|---|
| private final int micro | |
| minor | back to summary |
|---|---|
| private final int minor | |
| platform | back to summary |
|---|---|
| private final int platform | |
| VERSION | back to summary |
|---|---|
| public static final JavaVersion VERSION | |
| version | back to summary |
|---|---|
| private final String version | |
| JavaVersion | back to summary |
|---|---|
| private JavaVersion(String version, int platform, int major, int minor, int micro) | |
| getMajor | back to summary |
|---|---|
| public int getMajor() Returns the major number version, such as
| |
| getMicro | back to summary |
|---|---|
| public int getMicro() Returns the micro number version (aka security number), such as
| |
| getMinor | back to summary |
|---|---|
| public int getMinor() Returns the minor number version, such as
| |
| getPlatform | back to summary |
|---|---|
| public int getPlatform() Returns the Java Platform version, such as
| |
| getVersion | back to summary |
|---|---|
| public String getVersion() Get the string from which this JavaVersion was created.
| |
| parse | back to summary |
|---|---|
| public static JavaVersion parse(String v) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |