|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.fortuna.ical4j.model.WeekDay
Defines a day of the week with a possible offset related to a MONTHLY or YEARLY occurrence.
Field Summary | |
static WeekDay |
FR
|
static WeekDay |
MO
|
static WeekDay |
SA
|
static WeekDay |
SU
|
static WeekDay |
TH
|
static WeekDay |
TU
|
static WeekDay |
WE
|
Constructor Summary | |
WeekDay(String value)
|
|
WeekDay(String day,
int offset)
|
|
WeekDay(WeekDay weekDay,
int offset)
Constructs a new weekday instance based on the specified instance and offset. |
Method Summary | |
boolean |
equals(Object arg0)
|
static int |
getCalendarDay(WeekDay weekday)
Returns the corresponding java.util.Calendar.DAY_OF_WEEK
constant for the specified WeekDay . |
String |
getDay()
|
static WeekDay |
getMonthlyOffset(Calendar cal)
Returns a weekday/offset representation of the specified calendar. |
static WeekDay |
getNegativeMonthlyOffset(Calendar cal)
Returns a weekday/negative offset representation of the specified calendar. |
int |
getOffset()
|
static WeekDay |
getWeekDay(Calendar cal)
Returns a weekday representation of the specified calendar. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final WeekDay SU
public static final WeekDay MO
public static final WeekDay TU
public static final WeekDay WE
public static final WeekDay TH
public static final WeekDay FR
public static final WeekDay SA
Constructor Detail |
public WeekDay(String value)
value
- public WeekDay(String day, int offset)
day
- offset
- public WeekDay(WeekDay weekDay, int offset)
weekDay
- offset
- Method Detail |
public final String getDay()
public final int getOffset()
public final String toString()
public static final WeekDay getWeekDay(Calendar cal)
cal
- a calendar (java.util)
public static final WeekDay getMonthlyOffset(Calendar cal)
cal
- a calendar (java.util)
public static final WeekDay getNegativeMonthlyOffset(Calendar cal)
cal
- a calendar (java.util)
public static int getCalendarDay(WeekDay weekday)
java.util.Calendar.DAY_OF_WEEK
constant for the specified WeekDay
.
weekday
-
public final boolean equals(Object arg0)
public final int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |