|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||

java.lang.Objectjava.lang.Enum<PeriodCountBasis>
net.objectlab.kit.datecalc.common.PeriodCountBasis
public enum PeriodCountBasis
Defines some standard Day Count bases.
To read about the most common Day Count Conventions, you can refer to the following document.
| Enum Constant Summary | |
|---|---|
ACT_360
Actual/360, known in the United States as money market basis, has a day count fraction equal to the number of days between the payment dates, divided by 360. |
|
ACT_365
Actual/365(Fixed), known as bond basis in the United States, means that the day count fraction is equal to the number of days between the last payment date and the next date divided by 365. |
|
ACT_ACT
Actual/Actual, means that the numerator is the number of days between the two dates. |
|
CONV_30_360
30/360, means that day count fractions are calculated assuming 30 day months and 360 days in a year. |
|
CONV_360E_ISDA
30E/360, means that day count fractions are calculated assuming 30 day months and 360 days in a year. |
|
CONV_360E_ISMA
30E+/360, means that day count fractions are calculated assuming 30 day months and 360 days in a year. |
|
| Method Summary | |
|---|---|
static PeriodCountBasis |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PeriodCountBasis[] |
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 PeriodCountBasis CONV_30_360
public static final PeriodCountBasis CONV_360E_ISDA
public static final PeriodCountBasis CONV_360E_ISMA
public static final PeriodCountBasis ACT_ACT
public static final PeriodCountBasis ACT_360
public static final PeriodCountBasis ACT_365
| Method Detail |
|---|
public static PeriodCountBasis[] values()
for (PeriodCountBasis c : PeriodCountBasis.values()) System.out.println(c);
public static PeriodCountBasis valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||