@Override
 public int hashCode() {
   final int prime = 31;
   int result = super.hashCode();
   result = prime * result + _fixingPeriodEndDate.hashCode();
   result = prime * result + _fixingPeriodStartDate.hashCode();
   long temp;
   temp = Double.doubleToLongBits(_fixingPeriodAccrualFactor);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   result = prime * result + _index.hashCode();
   return result;
 }
Пример #2
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = super.hashCode();
   long temp;
   temp = Double.doubleToLongBits(_factor);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   temp = Double.doubleToLongBits(_fixingAccrualFactor);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   temp = Double.doubleToLongBits(_fixingPeriodEndTime);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   temp = Double.doubleToLongBits(_fixingPeriodStartTime);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   result = prime * result + _forwardCurveName.hashCode();
   result = prime * result + _index.hashCode();
   temp = Double.doubleToLongBits(_spread);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   temp = Double.doubleToLongBits(_spreadAmount);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   return result;
 }
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   long temp;
   temp = Double.doubleToLongBits(_fixingPeriodAccrualFactor);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   temp = Double.doubleToLongBits(_fixingPeriodEndTime);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   temp = Double.doubleToLongBits(_fixingPeriodStartTime);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   result = prime * result + (_forwardCurveName == null ? 0 : _forwardCurveName.hashCode());
   result =
       prime * result + (_discountingCurveName == null ? 0 : _discountingCurveName.hashCode());
   result = prime * result + _iborIndex.hashCode();
   temp = Double.doubleToLongBits(_lastTradingTime);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   result = prime * result + _name.hashCode();
   temp = Double.doubleToLongBits(_notional);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   temp = Double.doubleToLongBits(_paymentAccrualFactor);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   return result;
 }