|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.types.Duration
public final class Duration
A finite period of time.
Constructor Summary | |
---|---|
Duration()
Constructor. |
|
Duration(long time)
Constructor. |
|
Duration(long days,
long hours,
long minutes,
long seconds)
Constructor. |
Method Summary | |
---|---|
long |
dayField()
Accessor for the day field. |
boolean |
equals(java.lang.Object obj)
|
long |
getTime()
Accessor. |
int |
hashCode()
|
long |
hourField()
Accessor for the hour field. |
long |
minuteField()
Accessor for the minute field. |
long |
secondField()
Accessor for the second field. |
void |
setTime(long time)
Mutator. |
long |
time()
Accessor for the time. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Duration()
public Duration(long days, long hours, long minutes, long seconds)
days
- Number of dayshours
- Number of hoursminutes
- Number of minutesseconds
- Number of secondspublic Duration(long time)
time
- Time in seconds.Method Detail |
---|
public long time()
public long getTime()
public void setTime(long time)
time
- The time to set.public long secondField()
public long minuteField()
public long hourField()
public long dayField()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |