|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtj.core.model.Version
public class Version
Represents the version of a component. Understands a string of the form "major.minor.secondary_patch".
Note: This class/interface is part of an interim API that is still under development and expected to change before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken as the API evolves.
| Constructor Summary | |
|---|---|
Version(String versionString)
Construct a new version instance based on the specified version string. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
int |
compareTo(Version version)
|
boolean |
equals(Object object)
|
boolean |
equals(Version version)
Return a boolean indicating the equality of the specified version to this version. |
String |
getMajor()
Get the major version number. |
String |
getMinor()
Get the minor version number or null if not specified. |
String |
getPatch()
Get the patch version number or null if not specified. |
String |
getSecondary()
Get the secondary version number or null if not specified. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Version(String versionString)
| Method Detail |
|---|
public int compareTo(Object o)
compareTo in interface Comparable<Object>Comparable.compareTo(java.lang.Object)public int compareTo(Version version)
Comparable.compareTo(java.lang.Object)public boolean equals(Object object)
equals in class ObjectObject.equals(java.lang.Object)public boolean equals(Version version)
version -
public String getMajor()
public String getMinor()
null if not specified.
public String getPatch()
null if not specified.
public String getSecondary()
null if not specified.
public String toString()
toString in class ObjectObject.toString()
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||