public override bool Equals(object obj) { if (obj == this) { return(true); } if (obj != null && obj.GetType() == this.GetType()) { DepositIsdaCreditCurveNode other = (DepositIsdaCreditCurveNode)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)); } return(false); }
//------------------------------------------------------------------------- /// <summary> /// Returns a curve node for a term deposit. /// <para> /// The label will be created using {@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> /// <returns> the curve node </returns> public static DepositIsdaCreditCurveNode of(ObservableId observableId, DaysAdjustment spotDateOffset, BusinessDayAdjustment businessDayAdjustment, Tenor tenor, DayCount dayCount) { return(DepositIsdaCreditCurveNode.builder().observableId(observableId).tenor(tenor).businessDayAdjustment(businessDayAdjustment).dayCount(dayCount).spotDateOffset(spotDateOffset).build()); }