|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jagatoo.util.versioning.Version
public class Version
General Version information.
Please note, that the version information is not guaranteed to be updated
with each SVN commit. So the information might be outdated for
development versions. Especially the revision-number will be outdated most
of the time. Only releases are guaranteed to carry valid and correct
version information.
Constructor Summary | |
---|---|
Version(int major,
int minor,
int revision,
java.lang.String attributes,
int build)
Creates a new instance of Version information class. |
Method Summary | |
---|---|
int |
compareTo(Version that)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAttributes()
|
int |
getBuild()
|
int |
getMajor()
|
int |
getMinor()
|
int |
getRevision()
|
static Version |
parseVersion(java.lang.String str)
Parses a Version instance from the input string, which is expected to be formatted by the toString() method. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Version(int major, int minor, int revision, java.lang.String attributes, int build)
major
- the major version numberminor
- the minor version numberrevision
- the revision version numberattributes
- the version attributes (like "beta1" or "RC2")build
- the version-control-revision number.Method Detail |
---|
public int getMajor()
public int getMinor()
public int getRevision()
public java.lang.String getAttributes()
public int getBuild()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(Version that)
compareTo
in interface java.lang.Comparable<Version>
public static Version parseVersion(java.lang.String str)
Version
instance from the input string, which is expected to be formatted by the toString()
method.
str
-
Version
instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |