public class Duration
extends Object
implements Cloneable, Serializable
Constructor and Description |
---|
Duration()
Constructor Duration
|
Duration(int weeks)
Constructor Duration
|
Duration(int hours,
int minutes,
int seconds)
Constructor Duration
|
Duration(int days,
int hours,
int minutes,
int seconds)
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 weeks)
public Duration(int hours, int minutes, int seconds)
public Duration(int days, int hours, int minutes, int seconds)
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()