@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, getLogger
doInitialized, getInitializationState, initialize
private static RecurrenceUtil instance
public static RecurrenceUtil getInstance()
RecurrenceUtil
. Cdi.GET_INSTANCE
before using.public Date getNextDate(Date date, Recurrence recurrence)
RecurrenceUtil
Date
) after the given date
based on the given
Recurrence
.getNextDate
in interface RecurrenceUtil
date
- 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)
RecurrenceUtil
Calendar
) after the given calendar
based on the
given Recurrence
.getNextDate
in interface RecurrenceUtil
calendar
- 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.