|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CompoundingType>
com.moneydance.apps.md.model.CompoundingType
public enum CompoundingType
Defines the various types of security instruments that can be assigned to a security. Securities
may have sub-types as well. The ordinal values are fixed to the original integers mapped to
security type, as previously defined in SecurityAccount
:
COMPOUNDING_DAILY = 0; COMPOUNDING_WEEKLY = 1; COMPOUNDING_MONTHLY = 2; COMPOUNDING_ANNUALLY = 3; COMPOUNDING_QUARTERLY = 4;
Enum Constant Summary | |
---|---|
ANNUALLY
Every year. |
|
DAILY
Every day. |
|
MONTHLY
Every month. |
|
QUARTERLY
Quarterly (this came after annually so they are not in numerical order). |
|
WEEKLY
Every week. |
Field Summary | |
---|---|
static java.lang.String |
CONFIG_KEY
Key used to store and retrieve the compounding type from the account parameters. |
static CompoundingType |
DEFAULT
The default security type to use if none is specified. |
Method Summary | |
---|---|
static CompoundingType |
fromInt(int value)
Given an integer value, return the compounding type. |
java.lang.String |
getResourceKey()
Return a resource key for a localized string describing this object. |
java.lang.String |
toDisplayString(com.moneydance.apps.md.view.resources.MDResourceProvider resources)
|
static CompoundingType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CompoundingType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CompoundingType DAILY
public static final CompoundingType WEEKLY
public static final CompoundingType MONTHLY
public static final CompoundingType ANNUALLY
public static final CompoundingType QUARTERLY
Field Detail |
---|
public static final java.lang.String CONFIG_KEY
public static final CompoundingType DEFAULT
Method Detail |
---|
public static CompoundingType[] values()
for (CompoundingType c : CompoundingType.values()) System.out.println(c);
public static CompoundingType 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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getResourceKey()
DisplayableObject
getResourceKey
in interface DisplayableObject
public static CompoundingType fromInt(int value)
DEFAULT
is
returned.
value
- The integer value to convert.
public java.lang.String toDisplayString(com.moneydance.apps.md.view.resources.MDResourceProvider resources)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |