public class Duration
extends Object
implements Cloneable, 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
|
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
|
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 Object clone()
clone
in class 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 String toString()
toString
in class Object
protected void checkNonWeeksOkay(int f)
protected void checkWeeksOkay(int f)
protected void normalize()