public override bool Equals(object obj) { if (obj == this) { return(true); } if (obj != null && obj.GetType() == this.GetType()) { SwapIsdaCreditCurveNode other = (SwapIsdaCreditCurveNode)obj; return(JodaBeanUtils.equal(label, other.label) && JodaBeanUtils.equal(observableId, other.observableId) && JodaBeanUtils.equal(tenor, other.tenor) && JodaBeanUtils.equal(spotDateOffset, other.spotDateOffset) && JodaBeanUtils.equal(businessDayAdjustment, other.businessDayAdjustment) && JodaBeanUtils.equal(dayCount, other.dayCount) && JodaBeanUtils.equal(paymentFrequency, other.paymentFrequency)); } return(false); }
//------------------------------------------------------------------------- /// <summary> /// Returns a curve node for a standard fixed-Ibor swap. /// <para> /// The label will be created from {@code tenor}. /// /// </para> /// </summary> /// <param name="observableId"> the observable ID </param> /// <param name="spotDateOffset"> the spot date offset </param> /// <param name="businessDayAdjustment"> the business day adjustment </param> /// <param name="tenor"> the tenor </param> /// <param name="dayCount"> the day count </param> /// <param name="paymentFrequency"> the payment frequency </param> /// <returns> the curve node </returns> public static SwapIsdaCreditCurveNode of(ObservableId observableId, DaysAdjustment spotDateOffset, BusinessDayAdjustment businessDayAdjustment, Tenor tenor, DayCount dayCount, Frequency paymentFrequency) { return(SwapIsdaCreditCurveNode.builder().businessDayAdjustment(businessDayAdjustment).dayCount(dayCount).observableId(observableId).spotDateOffset(spotDateOffset).tenor(tenor).paymentFrequency(paymentFrequency).build()); }