Liferay 6.2-ce-ga5

com.liferay.util.cal
Class DayAndPosition

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

Deprecated. As of 6.2.0, moved to DayAndPosition

public class DayAndPosition
extends Object
implements Cloneable, Serializable

See Also:
Serialized Form

Field Summary
static int NO_WEEKDAY
          Deprecated. Field NO_WEEKDAY
 
Constructor Summary
DayAndPosition()
          Deprecated. Constructs a DayAndPosition
DayAndPosition(int d, int p)
          Deprecated. Constructs a DayAndPosition with the day of the week and day position.
 
Method Summary
 Object clone()
          Deprecated. Returns a clone of this DayAndPosition.
 boolean equals(Object obj)
          Deprecated. Returns true if the object equals this DayAndPosition.
 int getDayOfWeek()
          Deprecated. Returns the day of the week.
 int getDayPosition()
          Deprecated. Returns the day position.
 int hashCode()
          Deprecated. Returns the hash code of this DayAndPosition.
static boolean isValidDayOfWeek(int d)
          Deprecated. Returns true if the day is a valid day of the week.
static boolean isValidDayPosition(int p)
          Deprecated. Returns true if the day position is valid.
 void setDayOfWeek(int d)
          Deprecated. Sets the day of the week
 void setDayPosition(int p)
          Deprecated. Sets the day position
 String toString()
          Deprecated. Returns a string representation of the DayAndPosition
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_WEEKDAY

public static final int NO_WEEKDAY
Deprecated. 
Field NO_WEEKDAY

See Also:
Constant Field Values
Constructor Detail

DayAndPosition

public DayAndPosition()
Deprecated. 
Constructs a DayAndPosition


DayAndPosition

public DayAndPosition(int d,
                      int p)
Deprecated. 
Constructs a DayAndPosition with the day of the week and day position.

Method Detail

isValidDayOfWeek

public static boolean isValidDayOfWeek(int d)
Deprecated. 
Returns true if the day is a valid day of the week.

Parameters:
d - the day of the week in terms of Calendar or NO_WEEKDAY
Returns:
true if the day is a valid day of the week; false otherwise

isValidDayPosition

public static boolean isValidDayPosition(int p)
Deprecated. 
Returns true if the day position is valid.

Parameters:
p - the day position
Returns:
true if the day position is valid; false otherwise

clone

public Object clone()
Deprecated. 
Returns a clone of this DayAndPosition.

Overrides:
clone in class Object
Returns:
a clone of this DayAndPosition

equals

public boolean equals(Object obj)
Deprecated. 
Returns true if the object equals this DayAndPosition.

Overrides:
equals in class Object
Parameters:
obj - the other object
Returns:
true if the object equals this DayAndPosition, false otherwise

getDayOfWeek

public int getDayOfWeek()
Deprecated. 
Returns the day of the week.

Returns:
the day of the week

getDayPosition

public int getDayPosition()
Deprecated. 
Returns the day position.

Returns:
the day position

hashCode

public int hashCode()
Deprecated. 
Returns the hash code of this DayAndPosition.

Overrides:
hashCode in class Object
Returns:
the hash code of this DayAndPosition

setDayOfWeek

public void setDayOfWeek(int d)
Deprecated. 
Sets the day of the week

Parameters:
d - the day of the week

setDayPosition

public void setDayPosition(int p)
Deprecated. 
Sets the day position

Parameters:
p - the day position

toString

public String toString()
Deprecated. 
Returns a string representation of the DayAndPosition

Overrides:
toString in class Object
Returns:
a string representation of the DayAndPosition

Liferay 6.2-ce-ga5