public class Version extends Object implements Comparable<Version>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Version o)
Compares this version to the given one, segment by segment with a special
"SNAPSHOT" handling.
|
static Version |
create(String str)
Creates a new version from the given string.
|
static Version |
create(String[] segments)
Creates a new version from version segments
|
boolean |
equals(Object o) |
String[] |
getNormalizedSegments()
Returns all segments.
|
int |
hashCode() |
String |
toString() |
public static final Version EMPTY
public static Version create(String str)
str - the version string.EMPTY if str is an empty string.public static Version create(String[] segments)
segments - version segmentsEMPTY if segments is empty.public String[] getNormalizedSegments()
public int compareTo(Version o)
compareTo in interface Comparable<Version>o - the other versionCopyright © 2010 - 2020 Adobe. All Rights Reserved