| Modifier and Type | Field and Description |
|---|---|
static Version |
EMPTY
Deprecated.
The empty version
|
| Constructor and Description |
|---|
Version(java.lang.String str)
Deprecated.
use
create(String) instead. |
Version(java.lang.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(java.lang.String str)
Deprecated.
Creates a new version from the given string.
|
static Version |
create(java.lang.String[] segments)
Deprecated.
Creates a new version from version segments
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
java.lang.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.
|
java.lang.String |
toString()
Deprecated.
|
public static final Version EMPTY
public Version(java.lang.String str)
create(String) instead.str - the version string.public Version(java.lang.String[] segments)
create(String[]) instead.segments - version segmentspublic static Version create(java.lang.String str)
str - the version string.EMPTY if str is an empty string.public static Version create(java.lang.String[] segments)
segments - version segmentsEMPTY if segments is empty.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String[] getNormalizedSegments()
public int compareTo(Version o)
compareTo in interface java.lang.Comparable<Version>o - the other versionpublic int osgiCompareTo(Version o)
o - the other version"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"