Liferay 6.0.5

com.liferay.util.cal
Class Duration

java.lang.Object
  extended by com.liferay.util.cal.Duration
All Implemented Interfaces:
Serializable, Cloneable

Deprecated. This class has been repackaged at com.liferay.portal.kernel.cal.

public class Duration
extends Object
implements Cloneable, Serializable

See Also:
Serialized Form

Constructor Summary
Duration()
          Deprecated. Constructor Duration
Duration(int w)
          Deprecated. Constructor Duration
Duration(int h, int m, int s)
          Deprecated. Constructor Duration
Duration(int d, int h, int m, int s)
          Deprecated. Constructor Duration
 
Method Summary
protected  void checkNonWeeksOkay(int f)
          Deprecated. Method checkNonWeeksOkay
protected  void checkWeeksOkay(int f)
          Deprecated. Method checkWeeksOkay
 void clear()
          Deprecated. Method clear
 Object clone()
          Deprecated. Method clone
 int getDays()
          Deprecated. Method getDays
 int getHours()
          Deprecated. Method getHours
 long getInterval()
          Deprecated. Method getInterval
 int getMinutes()
          Deprecated. Method getMinutes
 int getSeconds()
          Deprecated. Method getSeconds
 int getWeeks()
          Deprecated. Method getWeeks
protected  void normalize()
          Deprecated. Method normalize
 void setDays(int d)
          Deprecated. Method setDays
 void setHours(int h)
          Deprecated. Method setHours
 void setInterval(long millis)
          Deprecated. Method setInterval
 void setMinutes(int m)
          Deprecated. Method setMinutes
 void setSeconds(int s)
          Deprecated. Method setSeconds
 void setWeeks(int w)
          Deprecated. Method setWeeks
 String toString()
          Deprecated. Method toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Duration

public Duration()
Deprecated. 
Constructor Duration


Duration

public Duration(int d,
                int h,
                int m,
                int s)
Deprecated. 
Constructor Duration


Duration

public Duration(int h,
                int m,
                int s)
Deprecated. 
Constructor Duration


Duration

public Duration(int w)
Deprecated. 
Constructor Duration

Method Detail

clear

public void clear()
Deprecated. 
Method clear


getWeeks

public int getWeeks()
Deprecated. 
Method getWeeks

Returns:
int

setWeeks

public void setWeeks(int w)
Deprecated. 
Method setWeeks


getDays

public int getDays()
Deprecated. 
Method getDays

Returns:
int

setDays

public void setDays(int d)
Deprecated. 
Method setDays


getHours

public int getHours()
Deprecated. 
Method getHours

Returns:
int

setHours

public void setHours(int h)
Deprecated. 
Method setHours


getMinutes

public int getMinutes()
Deprecated. 
Method getMinutes

Returns:
int

setMinutes

public void setMinutes(int m)
Deprecated. 
Method setMinutes


getSeconds

public int getSeconds()
Deprecated. 
Method getSeconds

Returns:
int

setSeconds

public void setSeconds(int s)
Deprecated. 
Method setSeconds


getInterval

public long getInterval()
Deprecated. 
Method getInterval

Returns:
long

setInterval

public void setInterval(long millis)
Deprecated. 
Method setInterval


normalize

protected void normalize()
Deprecated. 
Method normalize


checkWeeksOkay

protected void checkWeeksOkay(int f)
Deprecated. 
Method checkWeeksOkay


checkNonWeeksOkay

protected void checkNonWeeksOkay(int f)
Deprecated. 
Method checkNonWeeksOkay


clone

public Object clone()
Deprecated. 
Method clone

Overrides:
clone in class Object
Returns:
Object

toString

public String toString()
Deprecated. 
Method toString

Overrides:
toString in class Object
Returns:
String

Liferay 6.0.5