Package com.liferay.portal.kernel.cal
Class Duration
Object
com.liferay.portal.kernel.cal.Duration
- All Implemented Interfaces:
Serializable
,Cloneable
- Author:
- Jonathan Lennox
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkNonWeeksOkay
(int f) Method checkNonWeeksOkayprotected void
checkWeeksOkay
(int f) Method checkWeeksOkayvoid
clear()
Method clearclone()
Method cloneint
getDays()
Method getDaysint
getHours()
Method getHourslong
Method getIntervalint
Method getMinutesint
Method getSecondsint
getWeeks()
Method getWeeksprotected void
Method normalizevoid
setDays
(int d) Method setDaysvoid
setHours
(int h) Method setHoursvoid
setInterval
(long millis) Method setIntervalvoid
setMinutes
(int m) Method setMinutesvoid
setSeconds
(int s) Method setSecondsvoid
setWeeks
(int w) Method setWeekstoString()
Method toString
-
Constructor Details
-
Duration
public Duration()Constructor Duration -
Duration
public Duration(int weeks) Constructor Duration -
Duration
public Duration(int hours, int minutes, int seconds) Constructor Duration -
Duration
public Duration(int days, int hours, int minutes, int seconds) Constructor Duration
-
-
Method Details
-
clear
public void clear()Method clear -
clone
Method clone -
getDays
public int getDays()Method getDays- Returns:
- int
-
getHours
public int getHours()Method getHours- Returns:
- int
-
getInterval
public long getInterval()Method getInterval- Returns:
- long
-
getMinutes
public int getMinutes()Method getMinutes- Returns:
- int
-
getSeconds
public int getSeconds()Method getSeconds- Returns:
- int
-
getWeeks
public int getWeeks()Method getWeeks- Returns:
- int
-
setDays
public void setDays(int d) Method setDays -
setHours
public void setHours(int h) Method setHours -
setInterval
public void setInterval(long millis) Method setInterval -
setMinutes
public void setMinutes(int m) Method setMinutes -
setSeconds
public void setSeconds(int s) Method setSeconds -
setWeeks
public void setWeeks(int w) Method setWeeks -
toString
Method toString -
checkNonWeeksOkay
protected void checkNonWeeksOkay(int f) Method checkNonWeeksOkay -
checkWeeksOkay
protected void checkWeeksOkay(int f) Method checkWeeksOkay -
normalize
protected void normalize()Method normalize
-