com.liferay.util.cal
Class Duration

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

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

public class Duration
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

View Source

Author:
Jonathan Lennox
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
 java.lang.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
 java.lang.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

Parameters:
d -
h -
m -
s -

Duration

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

Parameters:
h -
m -
s -

Duration

public Duration(int w)
Deprecated. 
Constructor Duration

Parameters:
w -
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

Parameters:
w -

getDays

public int getDays()
Deprecated. 
Method getDays

Returns:
int

setDays

public void setDays(int d)
Deprecated. 
Method setDays

Parameters:
d -

getHours

public int getHours()
Deprecated. 
Method getHours

Returns:
int

setHours

public void setHours(int h)
Deprecated. 
Method setHours

Parameters:
h -

getMinutes

public int getMinutes()
Deprecated. 
Method getMinutes

Returns:
int

setMinutes

public void setMinutes(int m)
Deprecated. 
Method setMinutes

Parameters:
m -

getSeconds

public int getSeconds()
Deprecated. 
Method getSeconds

Returns:
int

setSeconds

public void setSeconds(int s)
Deprecated. 
Method setSeconds

Parameters:
s -

getInterval

public long getInterval()
Deprecated. 
Method getInterval

Returns:
long

setInterval

public void setInterval(long millis)
Deprecated. 
Method setInterval

Parameters:
millis -

normalize

protected void normalize()
Deprecated. 
Method normalize


checkWeeksOkay

protected void checkWeeksOkay(int f)
Deprecated. 
Method checkWeeksOkay

Parameters:
f -

checkNonWeeksOkay

protected void checkNonWeeksOkay(int f)
Deprecated. 
Method checkNonWeeksOkay

Parameters:
f -

clone

public java.lang.Object clone()
Deprecated. 
Method clone

Overrides:
clone in class java.lang.Object
Returns:
Object

toString

public java.lang.String toString()
Deprecated. 
Method toString

Overrides:
toString in class java.lang.Object
Returns:
String