コード例 #1
0
 /**
  * Restricted copy constructor.
  *
  * @param beanToCopy the bean to copy from, not null
  */
 private Builder(ImmutableTermDepositConvention beanToCopy) {
   this.currency = beanToCopy.getCurrency();
   this.name = beanToCopy.name;
   this.businessDayAdjustment = beanToCopy.getBusinessDayAdjustment();
   this.dayCount = beanToCopy.getDayCount();
   this.spotDateOffset = beanToCopy.getSpotDateOffset();
 }
コード例 #2
0
 @Override
 public boolean equals(Object obj) {
   if (obj == this) {
     return true;
   }
   if (obj != null && obj.getClass() == this.getClass()) {
     ImmutableTermDepositConvention other = (ImmutableTermDepositConvention) obj;
     return JodaBeanUtils.equal(getCurrency(), other.getCurrency())
         && JodaBeanUtils.equal(name, other.name)
         && JodaBeanUtils.equal(getBusinessDayAdjustment(), other.getBusinessDayAdjustment())
         && JodaBeanUtils.equal(getDayCount(), other.getDayCount())
         && JodaBeanUtils.equal(getSpotDateOffset(), other.getSpotDateOffset());
   }
   return false;
 }