|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.network.ByDay
public class ByDay
Represents Nth occurrence (or all occurrences) of the specified day of the week.
Corresponds to one day of the week specified in the BYDAY part of a recurrence rule.
Can be used in a monthly or yearly recurrence rule to specify Nth occurrence (or all occurrences) of the specified day of the week in a month or year.
BYDAY=MO represents all Mondays of the month or year. To represent all occurrences, set NthOccurrence to 0.
BYDAY=2MO represents 2nd Monday in a month or year.
BYDAY=-1MO represents the last Monday of a month or year.
ByDayCollection
Constructor Summary | |
---|---|
ByDay(int dayOfWeek)
Initializes a new instance of ByDay class. |
|
ByDay(int nthOccurrence,
int dayOfWeek)
Initializes a new instance of ByDay class. |
Method Summary | |
---|---|
boolean |
equals(ByDay other)
|
boolean |
equals(Object obj)
|
int |
getDayOfWeek()
Gets or sets the day of the week. |
int |
getNthOccurrence()
Gets or sets the nth occurrence of the day of the week. |
int |
hashCode()
|
boolean |
isAllOccurrences()
Returns True when NthOccurrence is zero (meaning all occurrences of this day of week). |
void |
setDayOfWeek(int value)
|
void |
setNthOccurrence(int value)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByDay(int dayOfWeek)
Initializes a new instance of ByDay class.
dayOfWeek
- A day of the week.public ByDay(int nthOccurrence, int dayOfWeek)
Initializes a new instance of ByDay class.
nthOccurrence
- The nth occurrence of the day of the week.dayOfWeek
- A day of the week.Method Detail |
---|
public int getNthOccurrence()
Gets or sets the nth occurrence of the day of the week.
Valid range for this property is from -53 to 53.
Positive values represent Nth occurrence from the beginning of the period, for example NthOccurrence = 1, represents 1st occurrence of the day of the week.
Negative values represent Nth occurrence from the end of the period, for example NthOccurrence = -1, represents last occurrence of the day of the week.
When NthOccurrence is zero, it represents all occurrences of the specified day of the week. For example, BYDAY=MO has NthOccurrence zero and represents all Mondays in the set.
public void setNthOccurrence(int value)
public int getDayOfWeek()
Gets or sets the day of the week.
public void setDayOfWeek(int value)
public boolean isAllOccurrences()
Returns True when NthOccurrence is zero (meaning all occurrences of this day of week).
public boolean equals(ByDay other)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |