jaige
Class Version

java.lang.Object
  extended by jaige.Version
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Version>

public class Version
extends java.lang.Object
implements java.lang.Comparable<Version>, java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class Version.Stage
           
 
Field Summary
static int NOT_USED
           
 
Constructor Summary
Version(int major, int minor)
           
Version(int major, int minor, int release)
           
Version(int major, int minor, int release, int build)
           
Version(int major, int minor, int release, Version.Stage stage, int stageVersion)
           
Version(int major, int minor, int release, Version.Stage stage, int stageNumber, int build)
           
 
Method Summary
 int compareTo(Version v)
           
 int getBuildNumber()
          Return the buildNumber property for this Version object.
 int getMajorVersion()
          Return the majorVersion property for this Version object.
 int getMinorVersion()
          Return the minorVersion property for this Version object.
 int getReleaseVersion()
          Return the releaseVersion property for this Version object.
 Version.Stage getStage()
          Return the stage property for this Version object.
 int getStageVersion()
          Return the stageVersion property for this Version object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_USED

public static final int NOT_USED
See Also:
Constant Field Values
Constructor Detail

Version

public Version(int major,
               int minor,
               int release,
               Version.Stage stage,
               int stageNumber,
               int build)

Version

public Version(int major,
               int minor)

Version

public Version(int major,
               int minor,
               int release)

Version

public Version(int major,
               int minor,
               int release,
               Version.Stage stage,
               int stageVersion)

Version

public Version(int major,
               int minor,
               int release,
               int build)
Method Detail

compareTo

public int compareTo(Version v)
Specified by:
compareTo in interface java.lang.Comparable<Version>

getMajorVersion

public int getMajorVersion()
Return the majorVersion property for this Version object.

Returns:
a majorVersion
See Also:
#setMajorVersion

getMinorVersion

public int getMinorVersion()
Return the minorVersion property for this Version object.

Returns:
a minorVersion
See Also:
#setMinorVersion

getReleaseVersion

public int getReleaseVersion()
Return the releaseVersion property for this Version object.

Returns:
a releaseVersion
See Also:
#setReleaseVersion

getStage

public Version.Stage getStage()
Return the stage property for this Version object.

Returns:
a stage
See Also:
#setStage

getStageVersion

public int getStageVersion()
Return the stageVersion property for this Version object.

Returns:
a stageVersion
See Also:
#setStageVersion

getBuildNumber

public int getBuildNumber()
Return the buildNumber property for this Version object.

Returns:
a buildNumber
See Also:
#setBuildNumber

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object