@Deprecated public class Version extends Object implements Comparable<Version>
| Modifier and Type | Field and Description |
|---|---|
static Version |
EMPTY
Deprecated.
The empty version
|
| Constructor and Description |
|---|
Version(String str)
Deprecated.
use
create(String) instead. |
Version(String[] segments)
Deprecated.
use
create(String[]) instead. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Version o)
Deprecated.
Compares this version to the given one, segment by segment with a special
"SNAPSHOT" handling.
|
static Version |
create(String str)
Deprecated.
Creates a new version from the given string.
|
static Version |
create(String[] segments)
Deprecated.
Creates a new version from version segments
|
boolean |
equals(Object o)
Deprecated.
|
String[] |
getNormalizedSegments()
Deprecated.
Returns all segments.
|
int |
hashCode()
Deprecated.
|
int |
osgiCompareTo(Version o)
Deprecated.
Compares this version to the given one, segment by segment without any special
"SNAPSHOT" handling.
|
String |
toString()
Deprecated.
|
public static final Version EMPTY
public Version(String str)
create(String) instead.str - the version string.public Version(String[] segments)
create(String[]) instead.segments - version segmentspublic 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 versionpublic int osgiCompareTo(Version o)
o - the other version"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"