Exemple #1
0
        //-------------------------------------------------------------------------
        /// <summary>
        /// Normalizes the months and years of this tenor.
        /// <para>
        /// This method returns a tenor of an equivalent length but with any number
        /// of months greater than 12 normalized into a combination of months and years.
        ///
        /// </para>
        /// </summary>
        /// <returns> the normalized tenor </returns>
        public Frequency normalized()
        {
            Period norm = period.normalized();

            return(norm != period ? Frequency.of(norm) : this);
        }
 /// <summary>
 /// Sets the periodic frequency used when building the schedule.
 /// <para>
 /// If the schedule was not built from a regular periodic frequency,
 /// then the frequency should be a suitable estimate.
 /// </para>
 /// </summary>
 /// <param name="frequency">  the new value, not null </param>
 /// <returns> this, for chaining, not null </returns>
 public Builder frequency(Frequency frequency)
 {
     JodaBeanUtils.notNull(frequency, "frequency");
     this.frequency_Renamed = frequency;
     return(this);
 }
 /// <summary>
 /// Restricted copy constructor. </summary>
 /// <param name="beanToCopy">  the bean to copy from, not null </param>
 internal Builder(Schedule beanToCopy)
 {
     this.periods_Renamed        = beanToCopy.Periods;
     this.frequency_Renamed      = beanToCopy.Frequency;
     this.rollConvention_Renamed = beanToCopy.RollConvention;
 }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(dataProvider = "roll") public void test_toRollConvention(StubConvention conv, java.time.LocalDate start, java.time.LocalDate end, Frequency freq, boolean eom, RollConvention expected)
        public virtual void test_toRollConvention(StubConvention conv, LocalDate start, LocalDate end, Frequency freq, bool eom, RollConvention expected)
        {
            assertEquals(conv.toRollConvention(start, end, freq, eom), expected);
        }