org.jagatoo.util.versioning
Class Version
java.lang.Object
org.jagatoo.util.versioning.Version
public class Version
- extends java.lang.Object
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Version
public Version(int major,
int minor,
int revision,
java.lang.String attributes,
int build)
- Creates a new instance of Version information class.
- Parameters:
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.
getMajor
public int getMajor()
- Returns:
- the major version number
getMinor
public int getMinor()
- Returns:
- the minor version number
getRevision
public int getRevision()
- Returns:
- the revision version number
getAttributes
public java.lang.String getAttributes()
- Returns:
- the version attributes (like "beta1" or "RC2") If no attributes
are present, this is null.
getBuild
public int getBuild()
- Returns:
- the version-control-revision number. It is the revision, that was
last checked in before this release. If this is an unreleased,
the returned value is not guaranteed to be correct.
toString
public java.lang.String toString()
-
- Overrides:
toString in class java.lang.Object