|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtheque.utils.bean.Duration
public final class Duration
This class represent a duration of time. A Duration is a period of hours and minutes.
Constructor Summary | |
---|---|
Duration()
Construct a new empty duration. |
|
Duration(int minutes)
Construct a new duration with only minutes. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
getHours()
Returns the hours of the duration. |
int |
getMinutes()
Returns the minutes of the duration. |
int |
hashCode()
|
void |
setHours(int hours)
Set the hours of the duration. |
void |
setMinutes(int minutes)
Set the minutes of the duration. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Duration(int minutes)
minutes
- The minutes of the durationpublic Duration()
Method Detail |
---|
public int getHours()
public void setHours(int hours)
hours
- The new number of hours in the durationpublic int getMinutes()
public void setMinutes(int minutes)
minutes
- The new number of minutespublic String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |