|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.teraspaces.qwframework.Version
public final class Version
A Java implementation of .Net Version class.
| Constructor Summary | |
|---|---|
Version()
Instantiates a new version. |
|
Version(int major,
int minor)
Instantiates a new version. |
|
Version(int major,
int minor,
int build)
Instantiates a new version. |
|
Version(int major,
int minor,
int build,
int revision)
Instantiates a new version. |
|
Version(String version)
Instantiates a new version. |
|
| Method Summary | |
|---|---|
int |
compareTo(Version v)
|
boolean |
equals(Object obj)
|
boolean |
equals(Version x)
Equals. |
int |
getBuild()
Gets the builds the. |
int |
getMajor()
Gets the major. |
short |
getMajorRevision()
Gets the major revision. |
int |
getMinor()
Gets the minor. |
short |
getMinorRevision()
Gets the minor revision. |
int |
getRevision()
Gets the revision. |
int |
hashCode()
|
String |
toString()
|
String |
ToString(int fields)
Converts current instance into a string. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Version()
public Version(String version)
version - the version
public Version(int major,
int minor)
major - the majorminor - the minor
public Version(int major,
int minor,
int build)
major - the majorminor - the minorbuild - the build
public Version(int major,
int minor,
int build,
int revision)
major - the majorminor - the minorbuild - the buildrevision - the revision| Method Detail |
|---|
public int getBuild()
public int getMajor()
public int getMinor()
public int getRevision()
public short getMajorRevision()
public short getMinorRevision()
public boolean equals(Object obj)
equals in class Objectpublic boolean equals(Version x)
x - the x
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic String ToString(int fields)
fields - the number of fields
public int compareTo(Version v)
compareTo in interface Comparable<Version>
|
||||||||||
| PREV CLASS NEXT CLASS | All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||