|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiweekly.util.Recurrence.Builder
public static class Recurrence.Builder
Constructs Recurrence objects.
| Constructor Summary | |
|---|---|
Recurrence.Builder(Recurrence.Frequency frequency)
Constructs a new builder. |
|
Recurrence.Builder(Recurrence recur)
Constructs a new builder |
|
| Method Summary | |
|---|---|
Recurrence |
build()
Builds the final Recurrence object. |
Recurrence.Builder |
byDay(Integer prefix,
Recurrence.DayOfWeek byDay)
Adds a BYDAY rule part. |
Recurrence.Builder |
byDay(Recurrence.DayOfWeek byDay)
Adds a BYDAY rule part. |
Recurrence.Builder |
byHour(Integer byHour)
Adds a BYHOUR rule part. |
Recurrence.Builder |
byMinute(Integer byMinute)
Adds a BYMINUTE rule part. |
Recurrence.Builder |
byMonth(Integer byMonth)
Adds a BYMONTH rule part. |
Recurrence.Builder |
byMonthDay(Integer byMonthDay)
Adds a BYMONTHDAY rule part. |
Recurrence.Builder |
bySecond(Integer bySecond)
Adds a BYSECOND rule part. |
Recurrence.Builder |
bySetPos(Integer bySetPos)
Adds a BYSETPOS rule part. |
Recurrence.Builder |
byWeekNo(Integer byWeekNo)
Adds a BYWEEKNO rule part. |
Recurrence.Builder |
byYearDay(Integer byYearDay)
Adds a BYYEARDAY rule part. |
Recurrence.Builder |
count(Integer count)
Gets the number of times the rule will be repeated. |
Recurrence.Builder |
frequency(Recurrence.Frequency frequency)
Sets the frequency |
Recurrence.Builder |
interval(Integer interval)
Gets how often the rule repeats, in relation to the frequency. |
Recurrence.Builder |
until(Date until)
Sets the date that the recurrence stops. |
Recurrence.Builder |
until(Date until,
boolean hasTime)
Sets the date that the recurrence stops. |
Recurrence.Builder |
workweekStarts(Recurrence.DayOfWeek workweekStarts)
Sets the day that the work week starts. |
Recurrence.Builder |
xrule(String name,
String value)
Adds a non-standard rule part. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Recurrence.Builder(Recurrence.Frequency frequency)
frequency - the recurrence frequencypublic Recurrence.Builder(Recurrence recur)
recur - the recurrence object to copy from| Method Detail |
|---|
public Recurrence.Builder frequency(Recurrence.Frequency frequency)
frequency - the frequency
public Recurrence.Builder until(Date until)
until - the date (time component is included)
public Recurrence.Builder until(Date until,
boolean hasTime)
until - the datehasTime - true if the date has a time component, false if it's
strictly a date
public Recurrence.Builder count(Integer count)
count - the number of times to repeat the rule
public Recurrence.Builder interval(Integer interval)
interval - the repetition interval
public Recurrence.Builder bySecond(Integer bySecond)
bySecond - the value to add
public Recurrence.Builder byMinute(Integer byMinute)
byMinute - the value to add
public Recurrence.Builder byHour(Integer byHour)
byHour - the value to add
public Recurrence.Builder byMonthDay(Integer byMonthDay)
byMonthDay - the value to add
public Recurrence.Builder byYearDay(Integer byYearDay)
byYearDay - the value to add
public Recurrence.Builder byWeekNo(Integer byWeekNo)
byWeekNo - the value to add
public Recurrence.Builder byMonth(Integer byMonth)
byMonth - the value to add
public Recurrence.Builder bySetPos(Integer bySetPos)
bySetPos - the value to add
public Recurrence.Builder byDay(Recurrence.DayOfWeek byDay)
byDay - the value to add
public Recurrence.Builder byDay(Integer prefix,
Recurrence.DayOfWeek byDay)
prefix - the numeric prefixbyDay - the value to add
public Recurrence.Builder workweekStarts(Recurrence.DayOfWeek workweekStarts)
workweekStarts - the day
public Recurrence.Builder xrule(String name,
String value)
name - the namevalue - the value or null to remove the rule part
public Recurrence build()
Recurrence object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||