openfuture.bugbase.model
Class Version
java.lang.Object
|
+--openfuture.bugbase.model.Version
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- Direct Known Subclasses:
- BugBaseAppletVersion, BugBaseServletVersion
- public class Version
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable
Version.java
Created: Tue Apr 25 20:51:24 2000
- Version:
- $Revision: 1.3 $
- Author:
- Wolfgang Reissenberger
- See Also:
- Serialized Form
Constructor Summary |
Version(java.lang.String label,
java.util.Date lastchange)
|
Version(VersionLabel label,
java.util.Date lastchange)
|
Method Summary |
int |
compareTo(java.lang.Object other)
Compares this with another object (total ordering). |
VersionLabel |
getLabel()
Get the value of label. |
java.util.Date |
getLastchange()
Get the value of lastchange. |
void |
setLabel(VersionLabel v)
Set the value of label. |
void |
setLastchange(java.util.Date v)
Set the value of lastchange. |
java.lang.String |
toString()
Returns the String representation of the version label. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Version
public Version(java.lang.String label,
java.util.Date lastchange)
Version
public Version(VersionLabel label,
java.util.Date lastchange)
getLabel
public VersionLabel getLabel()
- Get the value of label.
- Returns:
- Value of label.
setLabel
public void setLabel(VersionLabel v)
- Set the value of label.
- Parameters:
v
- Value to assign to label.
getLastchange
public java.util.Date getLastchange()
- Get the value of lastchange.
- Returns:
- Value of lastchange.
setLastchange
public void setLastchange(java.util.Date v)
- Set the value of lastchange.
- Parameters:
v
- Value to assign to lastchange.
compareTo
public int compareTo(java.lang.Object other)
throws java.lang.IllegalArgumentException
- Compares this with another object (total ordering).
- Specified by:
compareTo
in interface java.lang.Comparable
- Parameters:
other
- object to compare with- Returns:
- 1, if other is less than this or null, 0 if equal, -1
otherwise.
- Throws:
java.lang.IllegalArgumentException
- if other is not an
instance of Version
toString
public java.lang.String toString()
- Returns the String representation of the version label.
- Overrides:
toString
in class java.lang.Object
- Returns:
- String representation
Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.