Package cdm.base.datetime
Class CalculationPeriodFrequency.CalculationPeriodFrequencyImpl
java.lang.Object
cdm.base.datetime.Frequency.FrequencyImpl
cdm.base.datetime.CalculationPeriodFrequency.CalculationPeriodFrequencyImpl
- All Implemented Interfaces:
CalculationPeriodFrequency,Frequency,com.rosetta.model.lib.GlobalKey,com.rosetta.model.lib.RosettaModelObject
- Enclosing interface:
CalculationPeriodFrequency
public static class CalculationPeriodFrequency.CalculationPeriodFrequencyImpl
extends Frequency.FrequencyImpl
implements CalculationPeriodFrequency
Immutable Implementation of CalculationPeriodFrequency
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.base.datetime.CalculationPeriodFrequency
CalculationPeriodFrequency.CalculationPeriodFrequencyBuilder, CalculationPeriodFrequency.CalculationPeriodFrequencyBuilderImpl, CalculationPeriodFrequency.CalculationPeriodFrequencyImplNested classes/interfaces inherited from interface cdm.base.datetime.Frequency
Frequency.FrequencyBuilder, Frequency.FrequencyBuilderImpl, Frequency.FrequencyImplNested classes/interfaces inherited from interface com.rosetta.model.lib.GlobalKey
com.rosetta.model.lib.GlobalKey.GlobalKeyBuilder -
Field Summary
Fields inherited from interface cdm.base.datetime.CalculationPeriodFrequency
metaData -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCalculationPeriodFrequencyImpl(CalculationPeriodFrequency.CalculationPeriodFrequencyBuilder builder) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanIndicates, when true, that that the first Calculation Period should run from the Effective Date to the end of the calendar period in which the Effective Date falls, e.g.The roll convention specifies the period term as part of a periodic schedule, i.e. the calculation period end date within the regular part of the calculation period.inthashCode()protected voidtoString()Methods inherited from class cdm.base.datetime.Frequency.FrequencyImpl
getMeta, getPeriod, getPeriodMultiplier, setBuilderFieldsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.base.datetime.CalculationPeriodFrequency
getType, metaData, processMethods inherited from interface cdm.base.datetime.Frequency
getMeta, getPeriod, getPeriodMultiplierMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Constructor Details
-
CalculationPeriodFrequencyImpl
protected CalculationPeriodFrequencyImpl(CalculationPeriodFrequency.CalculationPeriodFrequencyBuilder builder)
-
-
Method Details
-
getRollConvention
@RosettaAttribute(value="rollConvention", isRequired=true) @RuneAttribute(value="rollConvention", isRequired=true) public RollConventionEnum getRollConvention()Description copied from interface:CalculationPeriodFrequencyThe roll convention specifies the period term as part of a periodic schedule, i.e. the calculation period end date within the regular part of the calculation period. The value could be a rule, e.g. IMM Settlement Dates, which is the 3rd Wednesday of the month, or it could be a specific day of the month, such as the first day of the applicable month. It is used in conjunction with a frequency and the regular period start date of a calculation period.- Specified by:
getRollConventionin interfaceCalculationPeriodFrequency
-
getBalanceOfFirstPeriod
@RosettaAttribute("balanceOfFirstPeriod") @RuneAttribute("balanceOfFirstPeriod") public Boolean getBalanceOfFirstPeriod()Description copied from interface:CalculationPeriodFrequencyIndicates, when true, that that the first Calculation Period should run from the Effective Date to the end of the calendar period in which the Effective Date falls, e.g. Jan 15 - Jan 31 if the calculation periods are one month long and Effective Date is Jan 15. If false, the first Calculation Period should run from the Effective Date for one whole period, e.g. Jan 15 to Feb 14 if the calculation periods are one month long and Effective Date is Jan 15. Mostly used in Commmodity Swaps.- Specified by:
getBalanceOfFirstPeriodin interfaceCalculationPeriodFrequency
-
build
Description copied from interface:FrequencyBuild Methods- Specified by:
buildin interfaceCalculationPeriodFrequency- Specified by:
buildin interfaceFrequency- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject- Overrides:
buildin classFrequency.FrequencyImpl
-
toBuilder
- Specified by:
toBuilderin interfaceCalculationPeriodFrequency- Specified by:
toBuilderin interfaceFrequency- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject- Overrides:
toBuilderin classFrequency.FrequencyImpl
-
setBuilderFields
protected void setBuilderFields(CalculationPeriodFrequency.CalculationPeriodFrequencyBuilder builder) -
equals
- Overrides:
equalsin classFrequency.FrequencyImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classFrequency.FrequencyImpl
-
toString
- Overrides:
toStringin classFrequency.FrequencyImpl
-