public enum CompoundingType extends java.lang.Enum<CompoundingType>
Account
:
COMPOUNDING_DAILY = 0; COMPOUNDING_WEEKLY = 1; COMPOUNDING_MONTHLY = 2; COMPOUNDING_ANNUALLY = 3; COMPOUNDING_QUARTERLY = 4;
Enum Constant and Description |
---|
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.
|
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
static CompoundingType |
fromInt(int value)
Given an integer value, return the compounding type.
|
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.
|
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
public static final java.lang.String CONFIG_KEY
public static final CompoundingType DEFAULT
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 namejava.lang.NullPointerException
- if the argument is nullpublic static CompoundingType fromInt(int value)
DEFAULT
is
returned.value
- The integer value to convert.