|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.moneydance.apps.md.model.time.TimeUnit
public final class TimeUnit
The MDTimeUnit class is the Moneydance representation of a base time unit.
| Field Summary | |
|---|---|
protected int |
calendarField
|
static TimeUnit |
DAY
|
static TimeUnit |
MONTH
|
protected int |
numUnits
|
static TimeUnit |
QUARTER
|
static TimeUnit[] |
STANDARD_UNITS
|
static TimeUnit |
WEEK
|
static TimeUnit |
YEAR
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
static TimeUnit |
fromString(java.lang.String string)
|
java.lang.String |
getDescription()
Returns a human readable description of the Frequency. |
java.lang.String |
getPluralName()
|
java.lang.String |
getSingularName()
|
int |
hashCode()
|
MDDate |
next(MDDate date)
Returns the next date in the sequency based on this frequency. |
MDDate |
previous(MDDate date)
Returns the previous date in the sequency based on this frequency. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int calendarField
protected int numUnits
public static final TimeUnit DAY
public static final TimeUnit WEEK
public static final TimeUnit MONTH
public static final TimeUnit QUARTER
public static final TimeUnit YEAR
public static final TimeUnit[] STANDARD_UNITS
| Method Detail |
|---|
public java.lang.String getSingularName()
public java.lang.String getPluralName()
public MDDate next(MDDate date)
next in interface Frequencydate - the initial MDDate
public MDDate previous(MDDate date)
previous in interface Frequencydate - the initial MDDate
public java.lang.String getDescription()
FrequencyFrequency.
getDescription in interface FrequencyFrequency.public java.lang.String toString()
toString in class java.lang.Objectpublic static TimeUnit fromString(java.lang.String string)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||