@Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash = hash * 31 + JodaBeanUtils.hashCode(getConvention());
   hash = hash * 31 + JodaBeanUtils.hashCode(getCalendar());
   return hash;
 }
 @Override
 protected void toString(StringBuilder buf) {
   super.toString(buf);
   buf.append("overnightIndexConvention")
       .append('=')
       .append(JodaBeanUtils.toString(getOvernightIndexConvention()))
       .append(',')
       .append(' ');
   buf.append("paymentTenor")
       .append('=')
       .append(JodaBeanUtils.toString(getPaymentTenor()))
       .append(',')
       .append(' ');
   buf.append("stubType")
       .append('=')
       .append(JodaBeanUtils.toString(getStubType()))
       .append(',')
       .append(' ');
   buf.append("isExchangeNotional")
       .append('=')
       .append(JodaBeanUtils.toString(isIsExchangeNotional()))
       .append(',')
       .append(' ');
   buf.append("paymentLag")
       .append('=')
       .append(JodaBeanUtils.toString(getPaymentLag()))
       .append(',')
       .append(' ');
 }
Example #3
0
 @Override
 public int hashCode() {
   int hash = 7;
   hash += hash * 31 + JodaBeanUtils.hashCode(getSnapshotMaster());
   hash += hash * 31 + JodaBeanUtils.hashCode(getCacheManager());
   return hash ^ super.hashCode();
 }
Example #4
0
 @Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash = hash * 31 + JodaBeanUtils.hashCode(date);
   hash = hash * 31 + JodaBeanUtils.hashCode(fixedRate);
   return hash;
 }
Example #5
0
 @Override
 protected void validate() {
   JodaBeanUtils.notNull(_externalIdBundle, "externalIdBundle");
   JodaBeanUtils.notNull(_name, "name");
   JodaBeanUtils.notNull(_fullName, "fullName");
   super.validate();
 }
 @Override
 public int hashCode() {
   int hash = 7;
   hash += hash * 31 + JodaBeanUtils.hashCode(getClassifier());
   hash += hash * 31 + JodaBeanUtils.hashCode(getFudgeContext());
   return hash ^ super.hashCode();
 }
Example #7
0
 @Override
 protected void toString(StringBuilder buf) {
   super.toString(buf);
   buf.append("startTenor")
       .append('=')
       .append(JodaBeanUtils.toString(getStartTenor()))
       .append(',')
       .append(' ');
   buf.append("maturityTenor")
       .append('=')
       .append(JodaBeanUtils.toString(getMaturityTenor()))
       .append(',')
       .append(' ');
   buf.append("payLegConvention")
       .append('=')
       .append(JodaBeanUtils.toString(getPayLegConvention()))
       .append(',')
       .append(' ');
   buf.append("receiveLegConvention")
       .append('=')
       .append(JodaBeanUtils.toString(getReceiveLegConvention()))
       .append(',')
       .append(' ');
   buf.append("useFixings")
       .append('=')
       .append(JodaBeanUtils.toString(isUseFixings()))
       .append(',')
       .append(' ');
 }
 @Override
 protected void validate(Bean bean) {
   JodaBeanUtils.notNull(
       ((InterestRateSwapSecurity) bean)._notionalExchange, "notionalExchange");
   JodaBeanUtils.notNull(((InterestRateSwapSecurity) bean)._legs, "legs");
   super.validate(bean);
 }
 @Override
 protected void validate() {
   JodaBeanUtils.notNull(_name, "name");
   JodaBeanUtils.notNull(_exposureFunctions, "exposureFunctions");
   JodaBeanUtils.notNull(_idsToNames, "idsToNames");
   super.validate();
 }
 // -----------------------------------------------------------------------
 @Override
 public String toString() {
   StringBuilder buf = new StringBuilder(192);
   buf.append("FxForwardSensitivity.Builder{");
   buf.append("currencyPair")
       .append('=')
       .append(JodaBeanUtils.toString(currencyPair))
       .append(',')
       .append(' ');
   buf.append("referenceCurrency")
       .append('=')
       .append(JodaBeanUtils.toString(referenceCurrency))
       .append(',')
       .append(' ');
   buf.append("referenceDate")
       .append('=')
       .append(JodaBeanUtils.toString(referenceDate))
       .append(',')
       .append(' ');
   buf.append("currency")
       .append('=')
       .append(JodaBeanUtils.toString(currency))
       .append(',')
       .append(' ');
   buf.append("sensitivity").append('=').append(JodaBeanUtils.toString(sensitivity));
   buf.append('}');
   return buf.toString();
 }
Example #11
0
 @Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash += hash * 31 + JodaBeanUtils.hashCode(getId());
   hash += hash * 31 + JodaBeanUtils.hashCode(getHostName());
   return hash;
 }
 @Override
 public double firstDerivative(Interpolator1DDataBundle data, Double value) {
   JodaBeanUtils.notNull(value, "value");
   JodaBeanUtils.notNull(data, "data");
   ArgChecker.isTrue(value > 0, "Value should be stricly positive");
   int lowerIndex = data.getLowerBoundIndex(value);
   int index;
   if (lowerIndex == data.size() - 1) {
     index = data.size() - 2;
   } else {
     index = lowerIndex;
   }
   double x1 = data.getKeys()[index];
   double y1 = data.getValues()[index];
   double x2 = data.getKeys()[index + 1];
   double y2 = data.getValues()[index + 1];
   if ((y1 < EPS) || (y2 < EPS)) {
     throw new UnsupportedOperationException(
         "node sensitivity not implemented when one node is 0 value");
   }
   double w = (x2 - value) / (x2 - x1);
   double xy21 = x1 * y1 * y1;
   double xy22 = x2 * y2 * y2;
   double xy2 = w * xy21 + (1 - w) * xy22;
   return 0.5
       * (-Math.sqrt(xy2 / value) + (-xy21 + xy22) / (x2 - x1) / Math.sqrt(xy2 / value))
       / value;
 }
Example #13
0
 @Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash += hash * 31 + JodaBeanUtils.hashCode(getObjectId());
   hash += hash * 31 + JodaBeanUtils.hashCode(getExternalId());
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash = hash * 31 + JodaBeanUtils.hashCode(getPaging());
   hash = hash * 31 + JodaBeanUtils.hashCode(getRoles());
   return hash;
 }
 @Override
 protected void validate() {
   JodaBeanUtils.notNull(_classifier, "classifier");
   JodaBeanUtils.notNull(_configMaster, "configMaster");
   JodaBeanUtils.notNull(_conventionBundleSource, "conventionBundleSource");
   super.validate();
 }
 @Override
 public int hashCode() {
   int hash = 7;
   hash = hash * 31 + JodaBeanUtils.hashCode(getLowerBound());
   hash = hash * 31 + JodaBeanUtils.hashCode(getUpperBound());
   return hash ^ super.hashCode();
 }
Example #17
0
 @Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash = hash * 31 + JodaBeanUtils.hashCode(type);
   hash = hash * 31 + JodaBeanUtils.hashCode(currency);
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = 7;
   hash = hash * 31 + JodaBeanUtils.hashCode(getUserClassifier());
   hash = hash * 31 + JodaBeanUtils.hashCode(getUserConfigMaster());
   return hash ^ super.hashCode();
 }
 @Override
 protected void validate(Bean bean) {
   JodaBeanUtils.notNull(((SimpleUserAccount) bean)._userName, "userName");
   JodaBeanUtils.notNull(((SimpleUserAccount) bean)._alternateIds, "alternateIds");
   JodaBeanUtils.notNull(((SimpleUserAccount) bean)._roles, "roles");
   JodaBeanUtils.notNull(((SimpleUserAccount) bean)._permissions, "permissions");
   JodaBeanUtils.notNull(((SimpleUserAccount) bean)._profile, "profile");
 }
Example #20
0
 private FloatingRateName(String name, String indexName, FloatingRateType type) {
   JodaBeanUtils.notEmpty(name, "name");
   JodaBeanUtils.notEmpty(indexName, "indexName");
   JodaBeanUtils.notNull(type, "type");
   this.name = name;
   this.indexName = indexName;
   this.type = type;
 }
 @Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash += hash * 31 + JodaBeanUtils.hashCode(getUniqueId());
   hash += hash * 31 + JodaBeanUtils.hashCode(getName());
   hash += hash * 31 + JodaBeanUtils.hashCode(getRootNode());
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash = hash * 31 + JodaBeanUtils.hashCode(underlyingOption);
   hash = hash * 31 + JodaBeanUtils.hashCode(barrier);
   hash = hash * 31 + JodaBeanUtils.hashCode(rebate);
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash = hash * 31 + JodaBeanUtils.hashCode(index);
   hash = hash * 31 + JodaBeanUtils.hashCode(valuationDateTime);
   hash = hash * 31 + JodaBeanUtils.hashCode(surface);
   return hash;
 }
Example #24
0
 @Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash = hash * 31 + JodaBeanUtils.hashCode(periodToStart);
   hash = hash * 31 + JodaBeanUtils.hashCode(periodToEnd);
   hash = hash * 31 + JodaBeanUtils.hashCode(convention);
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = 7;
   hash = hash * 31 + JodaBeanUtils.hashCode(getBaseDate());
   hash = hash * 31 + JodaBeanUtils.hashCode(getDates());
   hash = hash * 31 + JodaBeanUtils.hashCode(getDayCount());
   return hash ^ super.hashCode();
 }
 private IborFixingDepositCurveNode(
     IborFixingDepositTemplate template, ObservableKey rateKey, double spread) {
   JodaBeanUtils.notNull(template, "template");
   JodaBeanUtils.notNull(rateKey, "rateKey");
   this.template = template;
   this.rateKey = rateKey;
   this.spread = spread;
 }
Example #27
0
 @Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash = hash * 31 + JodaBeanUtils.hashCode(info);
   hash = hash * 31 + JodaBeanUtils.hashCode(product);
   hash = hash * 31 + JodaBeanUtils.hashCode(premium);
   return hash;
 }
 @Override
 public int hashCode() {
   int hash = getClass().hashCode();
   hash = hash * 31 + JodaBeanUtils.hashCode(getTemplate());
   hash = hash * 31 + JodaBeanUtils.hashCode(getRateKey());
   hash = hash * 31 + JodaBeanUtils.hashCode(getSpread());
   return hash;
 }
Example #29
0
 @Override
 protected void validate(Bean bean) {
   JodaBeanUtils.notNull(((SwapNode) bean)._startTenor, "startTenor");
   JodaBeanUtils.notNull(((SwapNode) bean)._maturityTenor, "maturityTenor");
   JodaBeanUtils.notNull(((SwapNode) bean)._payLegConvention, "payLegConvention");
   JodaBeanUtils.notNull(((SwapNode) bean)._receiveLegConvention, "receiveLegConvention");
   super.validate(bean);
 }
 @Override
 public int hashCode() {
   int hash = 7;
   hash += hash * 31 + JodaBeanUtils.hashCode(getClassifier());
   hash += hash * 31 + JodaBeanUtils.hashCode(isPublishRest());
   hash += hash * 31 + JodaBeanUtils.hashCode(getConfigSource());
   return hash ^ super.hashCode();
 }