public enum CompoundingMethod extends Enum<CompoundingMethod> implements NamedEnumA convention defining how to compound interest.
When calculating interest, it may be necessary to apply compounding. Compound interest occurs where the basic interest is collected over one period but paid over a longer period. For example, interest may be collected every three months but only paid every year.
For more information see this ISDA note.
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description
of(String name)Obtains an instance from the specified name.
toString()Returns the formatted name of the type.
valueOf(String name)Returns the enum constant of this type with the specified name.
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, valueOf
Enum Constant Detail
public static final CompoundingMethod NONENo compounding applies.
This is typically used when the payment periods align with the accrual periods thus no compounding is necessary. It may also be used when there are multiple accrual periods, but they are summed rather than compounded.
public static final CompoundingMethod STRAIGHTStraight compounding applies, which is inclusive of the spread.
Compounding is based on the total of the observed rate and the spread.
Defined as "Compounding" in the ISDA 2006 definitions.
public static final CompoundingMethod FLATFlat compounding applies.
For interest on the notional, known as the Basic Compounding Period Amount, compounding is based on the total of the observed rate and the spread. For interest on previously accrued interest, known as the Additional Compounding Period Amount, compounding is based only on the observed rate, excluding the spread.
Defined as "Flat Compounding" in the ISDA 2006 definitions.
public static final CompoundingMethod SPREAD_EXCLUSIVESpread exclusive compounding applies.
Compounding is based only on the observed rate, with the spread treated as simple interest.
Defined as "Compounding treating Spread as simple interest" in the ISDA definitions.
public static CompoundingMethod values()Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CompoundingMethod c : CompoundingMethod.values()) System.out.println(c);
- an array containing the constants of this enum type, in the order they are declared
public static CompoundingMethod valueOf(String name)Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
public static CompoundingMethod of(String name)Obtains an instance from the specified name.
Parsing handles the mixed case form produced by
toString()and the upper and lower case variants of the enum constant name.
name- the name to parse
- the type
IllegalArgumentException- if the name is not known