public final class Version extends Object implements Comparable<Version>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Version other) |
boolean |
equals(Object o) |
static Version |
fromString(String input)
Creates a new instance from the specified string.
|
int |
hashCode() |
String |
toString() |
public static Version fromString(String input)
The input string must match the semantic versioning format and may start with a 'v'. E.g. both following formats are valid:
input - the string to parseIllegalArgumentException - if the input string is not in the correct formatpublic int compareTo(Version other)
compareTo in interface Comparable<Version>Copyright © 2020. All rights reserved.