org.yawlfoundation.yawl.elements
Class YSpecVersion

java.lang.Object
  extended by org.yawlfoundation.yawl.elements.YSpecVersion
All Implemented Interfaces:
Comparable

public class YSpecVersion
extends Object
implements Comparable

A simple version numbering implementation stored as a major part and a minor part (both int) but represented externally as a dotted String (eg 5.12)

Author:
Michael Adams Date: 18/10/2007 Last Date: 05/06/08

Constructor Summary
YSpecVersion()
           
YSpecVersion(int major, int minor)
           
YSpecVersion(String version)
           
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object other)
           
 boolean equalsMajorVersion(YSpecVersion other)
           
 boolean equalsMinorVersion(YSpecVersion other)
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 String getVersion()
           
 int hashCode()
           
 String majorIncrement()
           
 String majorRollback()
           
 String minorIncrement()
           
 String minorRollback()
           
 String setVersion(int major, int minor)
           
 String setVersion(String version)
           
 double toDouble()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

YSpecVersion

public YSpecVersion()

YSpecVersion

public YSpecVersion(int major,
                    int minor)

YSpecVersion

public YSpecVersion(String version)
Method Detail

setVersion

public String setVersion(int major,
                         int minor)

setVersion

public String setVersion(String version)

getVersion

public String getVersion()

toDouble

public double toDouble()

toString

public String toString()
Overrides:
toString in class Object

getMajorVersion

public int getMajorVersion()

getMinorVersion

public int getMinorVersion()

minorIncrement

public String minorIncrement()

majorIncrement

public String majorIncrement()

minorRollback

public String minorRollback()

majorRollback

public String majorRollback()

compareTo

public int compareTo(Object obj)
Specified by:
compareTo in interface Comparable

equalsMajorVersion

public boolean equalsMajorVersion(YSpecVersion other)

equalsMinorVersion

public boolean equalsMinorVersion(YSpecVersion other)

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2012 The YAWL Foundation.