@Singleton @Named public class RecurrenceUtilImpl extends AbstractLoggableComponent implements RecurrenceUtil
RecurrenceUtil interface.getInstance()| Modifier and Type | Field and Description |
|---|---|
private static RecurrenceUtil |
instance |
| Constructor and Description |
|---|
RecurrenceUtilImpl()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static RecurrenceUtil |
getInstance()
This method gets the singleton instance of this
RecurrenceUtil. |
Calendar |
getNextDate(Calendar calendar,
Recurrence recurrence)
This method determines the next occurrence (as
Calendar) after the given calendar based on the
given Recurrence. |
Date |
getNextDate(Date date,
Recurrence recurrence)
This method determines the next occurrence (as
Date) after the given date based on the given
Recurrence. |
createLogger, doInitialize, getLoggerdoInitialized, getInitializationState, initializeprivate static RecurrenceUtil instance
public static RecurrenceUtil getInstance()
RecurrenceUtil. Cdi.GET_INSTANCE before using.public Date getNextDate(Date date, Recurrence recurrence)
RecurrenceUtilDate) after the given date based on the given
Recurrence.getNextDate in interface RecurrenceUtildate - is the Date of the current occurrence.recurrence - is the Recurrence specifying the rules how an event or appointment recurs.date based on recurrence.RecurrenceUtil.getNextDate(Calendar, Recurrence)public Calendar getNextDate(Calendar calendar, Recurrence recurrence)
RecurrenceUtilCalendar) after the given calendar based on the
given Recurrence.getNextDate in interface RecurrenceUtilcalendar - is the Calendar of the current occurrence.recurrence - is the Recurrence specifying the rules how an event or appointment recurs.calendar based on recurrence.RecurrenceUtil.getNextDate(Date, Recurrence)Copyright © 2001–2016 mmm-Team. All rights reserved.