jgnash.engine.recurring
Class MonthlyReminder
java.lang.Object
jgnash.engine.StoredObject
jgnash.engine.recurring.Reminder
jgnash.engine.recurring.MonthlyReminder
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Reminder>
public class MonthlyReminder
- extends Reminder
A monthly reminder / iterator.
Dates get a little weird when iterating by DAY and the day is early or late in the month.
Months may be skipped or multiple days in the same month. Iterating by DATE will be
much more consistent.
- Version:
- $Id$
- Author:
- Craig Cavanaugh
- See Also:
- Serialized Form
|
Field Summary |
private static int |
DATE
|
static int |
DAY
|
private static long |
serialVersionUID
|
private int |
type
Defines if increment is by day of the week or day of the month |
| Methods inherited from class jgnash.engine.recurring.Reminder |
clone, compareTo, equals, getAccount, getDaysAdvance, getDescription, getEndDate, getIncrement, getLastDate, getNotes, getStartDate, getTransaction, hashCode, isAutoCreate, isAutoCreateNotify, isEnabled, isRemovable, setAccount, setAutoCreate, setAutoCreateNotify, setDaysAdvance, setDescription, setEnabled, setEndDate, setIncrement, setLastDate, setNotes, setRemovable, setStartDate, setTransaction, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
type
private int type
- Defines if increment is by day of the week or day of the month
DATE
private static final int DATE
- See Also:
- Constant Field Values
DAY
public static final int DAY
- See Also:
- Constant Field Values
MonthlyReminder
public MonthlyReminder()
getIterator
public RecurringIterator getIterator()
- Specified by:
getIterator in class Reminder
- Returns:
- Returns the iterator.
- See Also:
Reminder.getIterator()
getType
public int getType()
- Returns:
- Returns the type.
getReminderType
public ReminderType getReminderType()
- Specified by:
getReminderType in class Reminder
- Returns:
- Return reminder type
- See Also:
Reminder.getReminderType()
setType
public void setType(int type)
- Parameters:
type - The type to set.