|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.deployers.structure.spi.classloading.Version
org.jboss.deployers.structure.spi.classloading.helpers.VersionImpl
public class VersionImpl
VersionImpl. OSGi kind of version impl.
| Field Summary |
|---|
| Fields inherited from class org.jboss.deployers.structure.spi.classloading.Version |
|---|
DEFAULT_VERSION |
| Constructor Summary | |
|---|---|
VersionImpl(int major,
int minor,
int micro)
|
|
VersionImpl(int major,
int minor,
int micro,
String qualifier)
|
|
| Method Summary | |
|---|---|
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 VersionImpl |
parseVersion(String version)
Parses a version identifier from the specified string. |
String |
toString()
|
protected void |
validate()
Validate arguments. |
| Methods inherited from class org.jboss.deployers.structure.spi.classloading.Version |
|---|
compareTo |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VersionImpl(int major,
int minor,
int micro)
public VersionImpl(int major,
int minor,
int micro,
String qualifier)
| Method Detail |
|---|
protected void validate()
public static VersionImpl 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 Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||