@Override public int hashCode() { int hash = getClass().hashCode(); hash = hash * 31 + JodaBeanUtils.hashCode(template); hash = hash * 31 + JodaBeanUtils.hashCode(label); hash = hash * 31 + JodaBeanUtils.hashCode(observableId); hash = hash * 31 + JodaBeanUtils.hashCode(cdsIndexId); hash = hash * 31 + JodaBeanUtils.hashCode(legalEntityIds); hash = hash * 31 + JodaBeanUtils.hashCode(quoteConvention); hash = hash * 31 + JodaBeanUtils.hashCode(fixedRate); return hash; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof IntDoublePair) { IntDoublePair other = (IntDoublePair) obj; return this.first == other.first && JodaBeanUtils.equal(second, other.second); } return super.equals(obj); }
@Override public String toString() { StringBuilder buf = new StringBuilder(192); buf.append("FailureItem.Builder{"); buf.append("reason").append('=').append(JodaBeanUtils.toString(reason)).append(',').append(' '); buf.append("message").append('=').append(JodaBeanUtils.toString(message)).append(',').append(' '); buf.append("attributes").append('=').append(JodaBeanUtils.toString(attributes)).append(',').append(' '); buf.append("stackTrace").append('=').append(JodaBeanUtils.toString(stackTrace)).append(',').append(' '); buf.append("causeType").append('=').append(JodaBeanUtils.toString(causeType)); buf.append('}'); return buf.toString(); }
/** * Sets the index name, such as 'GBP-SONIA'. * @param name the new value, not null * @return this, for chaining, not null */ public Builder name(String name) { JodaBeanUtils.notNull(name, "name"); this.name = name; return this; }
/** * Sets the label to use for the node, defaulted. * <p> * When building, this will default based on the tenor if not specified. * @param label the new value, not empty * @return this, for chaining, not null */ public Builder label(String label) { JodaBeanUtils.notEmpty(label, "label"); this.label = label; return this; }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj != null && obj.getClass() == this.getClass()) { LegalEntitySurvivalProbabilities other = (LegalEntitySurvivalProbabilities) obj; return JodaBeanUtils.equal(legalEntityId, other.legalEntityId) && JodaBeanUtils.equal(survivalProbabilities, other.survivalProbabilities); } return false; }
@Override public String toString() { StringBuilder buf = new StringBuilder(192); buf.append("ImmutableFxIndex.Builder{"); buf.append("name").append('=').append(JodaBeanUtils.toString(name)).append(',').append(' '); buf.append("currencyPair").append('=').append(JodaBeanUtils.toString(currencyPair)).append(',').append(' '); buf.append("fixingCalendar").append('=').append(JodaBeanUtils.toString(fixingCalendar)).append(',').append(' '); buf.append("fixingDateOffset").append('=').append(JodaBeanUtils.toString(fixingDateOffset)).append(',').append(' '); buf.append("maturityDateOffset").append('=').append(JodaBeanUtils.toString(maturityDateOffset)); buf.append('}'); return buf.toString(); }
/** * Sets the market data value which provides data for multiple scenarios. * @param value the new value, not null * @return this, for chaining, not null */ public Builder<T> value(ScenarioArray<T> value) { JodaBeanUtils.notNull(value, "value"); this.value = value; return this; }
/** * Sets the label to use for the node, defaulted. * <p> * When building, this will default based on the tenor if not specified. * @param label the new value, not empty * @return this, for chaining, not null */ public Builder label(String label) { JodaBeanUtils.notEmpty(label, "label"); this.label = label; return this; }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj != null && obj.getClass() == this.getClass()) { TermDepositTemplate other = (TermDepositTemplate) obj; return JodaBeanUtils.equal(depositPeriod, other.depositPeriod) && JodaBeanUtils.equal(convention, other.convention); } return false; }
@Override public int hashCode() { int hash = getClass().hashCode(); hash = hash * 31 + JodaBeanUtils.hashCode(index); hash = hash * 31 + JodaBeanUtils.hashCode(fixingDate); hash = hash * 31 + JodaBeanUtils.hashCode(effectiveDate); hash = hash * 31 + JodaBeanUtils.hashCode(maturityDate); hash = hash * 31 + JodaBeanUtils.hashCode(yearFraction); return hash; }
@Override public String toString() { StringBuilder buf = new StringBuilder(160); buf.append("SwapLegAmount.Builder{"); buf.append("amount").append('=').append(JodaBeanUtils.toString(amount)).append(',').append(' '); buf.append("payReceive").append('=').append(JodaBeanUtils.toString(payReceive)).append(',').append(' '); buf.append("type").append('=').append(JodaBeanUtils.toString(type)).append(',').append(' '); buf.append("currency").append('=').append(JodaBeanUtils.toString(currency)); buf.append('}'); return buf.toString(); }
/** * Sets the fixing time. * <p> * The rate is fixed at the fixing time of the fixing date. * @param fixingTime the new value, not null * @return this, for chaining, not null */ public Builder fixingTime(LocalTime fixingTime) { JodaBeanUtils.notNull(fixingTime, "fixingTime"); this.fixingTime = fixingTime; return this; }
/** * Sets the label to use for the node, defaulted. * <p> * When building, this will default based on the tenor if not specified. * @param label the new value, not empty * @return this, for chaining, not null */ public Builder label(String label) { JodaBeanUtils.notEmpty(label, "label"); this.label = label; return this; }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj != null && obj.getClass() == this.getClass()) { ResolvedBulletPaymentTrade other = (ResolvedBulletPaymentTrade) obj; return JodaBeanUtils.equal(info, other.info) && JodaBeanUtils.equal(product, other.product); } return false; }
@Override public int hashCode() { int hash = getClass().hashCode(); hash = hash * 31 + JodaBeanUtils.hashCode(firstStepDate); hash = hash * 31 + JodaBeanUtils.hashCode(lastStepDate); hash = hash * 31 + JodaBeanUtils.hashCode(frequency); hash = hash * 31 + JodaBeanUtils.hashCode(adjustment); return hash; }
@Override public String toString() { StringBuilder buf = new StringBuilder(160); buf.append("CashFlow.Builder{"); buf.append("paymentDate").append('=').append(JodaBeanUtils.toString(paymentDate)).append(',').append(' '); buf.append("presentValue").append('=').append(JodaBeanUtils.toString(presentValue)).append(',').append(' '); buf.append("forecastValue").append('=').append(JodaBeanUtils.toString(forecastValue)).append(',').append(' '); buf.append("discountFactor").append('=').append(JodaBeanUtils.toString(discountFactor)); buf.append('}'); return buf.toString(); }