Methods Summary |
---|
public java.lang.Object | clone()Copies the current instance.
TypedTime retval = new TypedTime();
retval.unit = this.unit;
retval.time = this.time;
return retval;
|
public java.lang.String | encode()Gets the string encoded version of this object.
String retval = "";
retval += new Integer(time).toString();
if (unit != null) retval += unit;
return retval;
|
public int | getTime()Gets the value of time.
return time;
|
public java.lang.String | getUnit()Gets the units of time.
return unit;
|
public void | setTime(int t)Sets the time value.
time = t;
|
public void | setUnit(java.lang.String u)Sets the unit of time label.
unit = u;
|