public class Duration
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Constructor and Description |
---|
Duration()
Constructor Duration
|
Duration(int w)
Constructor Duration
|
Duration(int h,
int m,
int s)
Constructor Duration
|
Duration(int d,
int h,
int m,
int s)
Constructor Duration
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkNonWeeksOkay(int f)
Method checkNonWeeksOkay
|
protected void |
checkWeeksOkay(int f)
Method checkWeeksOkay
|
void |
clear()
Method clear
|
java.lang.Object |
clone()
Method clone
|
int |
getDays()
Method getDays
|
int |
getHours()
Method getHours
|
long |
getInterval()
Method getInterval
|
int |
getMinutes()
Method getMinutes
|
int |
getSeconds()
Method getSeconds
|
int |
getWeeks()
Method getWeeks
|
protected void |
normalize()
Method normalize
|
void |
setDays(int d)
Method setDays
|
void |
setHours(int h)
Method setHours
|
void |
setInterval(long millis)
Method setInterval
|
void |
setMinutes(int m)
Method setMinutes
|
void |
setSeconds(int s)
Method setSeconds
|
void |
setWeeks(int w)
Method setWeeks
|
java.lang.String |
toString()
Method toString
|
public Duration()
public Duration(int w)
public Duration(int h, int m, int s)
public Duration(int d, int h, int m, int s)
public void clear()
public java.lang.Object clone()
clone
in class java.lang.Object
public int getDays()
public int getHours()
public long getInterval()
public int getMinutes()
public int getSeconds()
public int getWeeks()
public void setDays(int d)
public void setHours(int h)
public void setInterval(long millis)
public void setMinutes(int m)
public void setSeconds(int s)
public void setWeeks(int w)
public java.lang.String toString()
toString
in class java.lang.Object
protected void checkNonWeeksOkay(int f)
protected void checkWeeksOkay(int f)
protected void normalize()