public enum PeriodType extends java.lang.Enum<PeriodType>
Modifier and Type | Method and Description |
---|---|
int |
addPeriodToDate(int date)
Add this period to the given Moneydance integer date and return the result.
|
static PeriodType[] |
all()
Returns all PeriodType available.
|
static PeriodType[] |
filter(PeriodType periodType,
PeriodTypeFilter filter)
Returns the PeriodType objects according to the given periodType and filter.
|
static PeriodType |
fromOrder(int periodTypeOrder) |
int |
getCalendarField() |
int |
getDaysInPeriodContaining(int date) |
int |
getFirstDayInPeriod(int date)
Returns the first date in the period that contains the given date
|
int |
getOrder() |
int |
incrementDateByPeriod(int date,
int numPeriods)
Add this period to the given Moneydance integer date and return the result.
|
static PeriodType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PeriodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeriodType WEEK
public static final PeriodType BIWEEK
public static final PeriodType MONTH
public static final PeriodType YEAR
public static PeriodType[] values()
for (PeriodType c : PeriodType.values()) System.out.println(c);
public static PeriodType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getCalendarField()
public int getOrder()
public static PeriodType[] all()
public static PeriodType[] filter(PeriodType periodType, PeriodTypeFilter filter)
periodType
- filter
- public int addPeriodToDate(int date)
public int incrementDateByPeriod(int date, int numPeriods)
public int getDaysInPeriodContaining(int date)
public int getFirstDayInPeriod(int date)
public static PeriodType fromOrder(int periodTypeOrder)