jgnash.engine.recurring
Class MonthlyReminder

java.lang.Object
  extended by jgnash.engine.StoredObject
      extended by jgnash.engine.recurring.Reminder
          extended by 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

Nested Class Summary
private  class MonthlyReminder.MonthlyIterator
           
 
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
 
Constructor Summary
MonthlyReminder()
           
 
Method Summary
 RecurringIterator getIterator()
           
 ReminderType getReminderType()
           
 int getType()
           
 void setType(int type)
           
 
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 jgnash.engine.StoredObject
getUuid, isMarkedForRemoval
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

MonthlyReminder

public MonthlyReminder()
Method Detail

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.