private CdsIndexCalibrationTrade(CdsIndexTrade underlyingTrade, CdsQuote quote) { JodaBeanUtils.notNull(underlyingTrade, "underlyingTrade"); JodaBeanUtils.notNull(quote, "quote"); this.underlyingTrade = underlyingTrade; this.quote = quote; }
//----------------------------------------------------------------------- public override bool Equals(object obj) { if (obj == this) { return(true); } if (obj != null && obj.GetType() == this.GetType()) { CdsQuote other = (CdsQuote)obj; return(JodaBeanUtils.equal(quoteConvention, other.quoteConvention) && JodaBeanUtils.equal(quotedValue, other.quotedValue)); } return(false); }
public override Builder set(string propertyName, object newValue) { switch (propertyName.GetHashCode()) { case -823800825: // underlyingTrade this.underlyingTrade = (CdsIndexTrade)newValue; break; case 107953788: // quote this.quote = (CdsQuote)newValue; break; default: throw new NoSuchElementException("Unknown property: " + propertyName); } return(this); }
//------------------------------------------------------------------------- /// <summary> /// Creates an instance. /// </summary> /// <param name="trade"> the trade </param> /// <param name="quote"> the quote </param> /// <returns> the instance </returns> public static CdsIndexCalibrationTrade of(CdsIndexTrade trade, CdsQuote quote) { return(new CdsIndexCalibrationTrade(trade, quote)); }