Enum Class DayCount
- All Implemented Interfaces:
Serializable,Comparable<DayCount>,Constable
The day count convention used to calculate accrued interest. - `A/360`: calculates the daily interest using a 360-day year and then multiplies that by the actual number of days in each time period. - `A/365`: calculates the daily interest using a 365-day year and then multiplies that by the actual number of days in each time period. - `30/360`: calculates the daily interest using a 360-day year and then multiplies that by 30 (standardized month). - `30/365`: calculates the daily interest using a 365-day year and then multiplies that by 30 (standardized month). - `A/A`: calculates the daily interest using the actual number of days in the year and then multiplies that by the actual number of days in each time period. - `30E/360`: number of days equals to the actual number of days (for February). If the start date or the end date of the period is the 31st of a month, that date is set to the 30th. The number of days in a year is 360. - `B/252`: calculates the daily interest using a 252-business-day year and then multiplies that by the actual number of days in each time period. - `A/364`: calculates the daily interest using a 364-day year and then multiplies that by the actual number of days in each time period.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DayCountgetValue()toString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) static DayCountReturns the enum constant of this class with the specified name.static DayCount[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
A_360
-
A_365
-
_30_360
-
_30_365
-
A_A
-
_30_E_360
-
B_252
-
A_364
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
toString
-
fromValue
-
validateJsonElement
- Throws:
IOException
-