|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.classloading.spi.version.Version
public class Version
Version.
| Field Summary | |
|---|---|
static Version |
DEFAULT_VERSION
The default version |
| Constructor Summary | |
|---|---|
Version(int major,
int minor,
int micro)
Create a new Version. |
|
Version(int major,
int minor,
int micro,
String qualifier)
Create a new VersionImpl. |
|
| Method Summary | |
|---|---|
int |
compareTo(Version version)
Compare two Versions. |
boolean |
equals(Object object)
|
int |
getMajor()
Returns the major component of this version identifier. |
int |
getMicro()
Returns the micro component of this version identifier. |
int |
getMinor()
Returns the minor component of this version identifier. |
String |
getQualifier()
Returns the qualifier component of this version identifier. |
int |
hashCode()
|
static Version |
parseVersion(String version)
Parses a version identifier from the specified string. |
String |
toString()
|
protected void |
validate()
Validate arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Version DEFAULT_VERSION
| Constructor Detail |
|---|
public Version(int major,
int minor,
int micro)
major - the major partminor - the minor partmicro - the micro part
public Version(int major,
int minor,
int micro,
String qualifier)
major - the major partminor - the minor partmicro - the micro partqualifier - the qualifier| Method Detail |
|---|
protected void validate()
public static Version parseVersion(String version)
Version(String) for the format of the version string.
version - String representation of the version identifier. Leading
and trailing whitespace will be ignored.
Version object representing the version
identifier. If version is null or
the empty string then emptyVersion will be
returned.
IllegalArgumentException - If version is improperly
formatted.public int getMajor()
public int getMinor()
public int getMicro()
public String getQualifier()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectpublic int compareTo(Version version)
compareTo in interface Comparable<Version>version - the other version
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||