public class JavaVersion extends Object
| Constructor and Description |
|---|
JavaVersion()
Empty version check will accept no versions.
|
JavaVersion(String spec)
The version check is specified by the string specification.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(String version)
Check if the supplied version matches the specification.
|
public JavaVersion()
public JavaVersion(String spec) throws ParseException
spec - The version string specification.ParseException - For parsing errors in the spec.public boolean matches(String version) throws ParseException
version - The version to match for.ParseException - If there is a parsing error in the version.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.