| Constructor and Description |
|---|
VersionConverter() |
| Modifier and Type | Method and Description |
|---|---|
static Version |
toOsgiVersion(String value)
Converts generic version id to the
Version instance. |
public static Version toOsgiVersion(String value) throws IllegalArgumentException
Version instance. Examples:
0.0 -> 0.0.0 2.3.4-SNAPSHOT -> 2.3.4.SNAPSHOT 8.7.6-special-edition -> 8.7.6.special-edition
value - any usual version id parseable by the Version class constructor after
adding missing implicit values.VersionIllegalArgumentException - If the numerical components are negative
or the qualifier string is invalid.Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.