private ResetSchedule(Frequency resetFrequency, BusinessDayAdjustment businessDayAdjustment, IborRateResetMethod resetMethod) { JodaBeanUtils.notNull(resetFrequency, "resetFrequency"); JodaBeanUtils.notNull(businessDayAdjustment, "businessDayAdjustment"); JodaBeanUtils.notNull(resetMethod, "resetMethod"); this.resetFrequency = resetFrequency; this.businessDayAdjustment = businessDayAdjustment; this.resetMethod = resetMethod; }
public override Builder set(string propertyName, object newValue) { switch (propertyName.GetHashCode()) { case 101322957: // resetFrequency this.resetFrequency_Renamed = (Frequency)newValue; break; case -1065319863: // businessDayAdjustment this.businessDayAdjustment_Renamed = (BusinessDayAdjustment)newValue; break; case -958176496: // resetMethod this.resetMethod_Renamed = (IborRateResetMethod)newValue; break; default: throw new NoSuchElementException("Unknown property: " + propertyName); } return(this); }
public virtual void test_of_lookup_null() { assertThrows(() => IborRateResetMethod.of(null), typeof(System.ArgumentException)); }
public virtual void test_of_lookup_notFound() { assertThrows(() => IborRateResetMethod.of("Rubbish"), typeof(System.ArgumentException)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test(dataProvider = "name") public void test_of_lookup(IborRateResetMethod convention, String name) public virtual void test_of_lookup(IborRateResetMethod convention, string name) { assertEquals(IborRateResetMethod.of(name), convention); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test(dataProvider = "name") public void test_toString(IborRateResetMethod convention, String name) public virtual void test_toString(IborRateResetMethod convention, string name) { assertEquals(convention.ToString(), name); }
/// <summary> /// Sets the rate reset method, defaulted to 'Unweighted'. /// <para> /// This is used when more than one fixing contributes to the accrual period. /// </para> /// <para> /// Averaging may be weighted by the number of days that the fixing is applicable for. /// The number of days is based on the reset period, not the period between two fixing dates. /// </para> /// <para> /// Defined by the 2006 ISDA definitions article 6.2a. /// </para> /// </summary> /// <param name="resetMethod"> the new value, not null </param> /// <returns> this, for chaining, not null </returns> public Builder resetMethod(IborRateResetMethod resetMethod) { JodaBeanUtils.notNull(resetMethod, "resetMethod"); this.resetMethod_Renamed = resetMethod; return(this); }
/// <summary> /// Restricted copy constructor. </summary> /// <param name="beanToCopy"> the bean to copy from, not null </param> internal Builder(ResetSchedule beanToCopy) { this.resetFrequency_Renamed = beanToCopy.ResetFrequency; this.businessDayAdjustment_Renamed = beanToCopy.BusinessDayAdjustment; this.resetMethod_Renamed = beanToCopy.ResetMethod; }