List of usage examples for java.lang Double doubleToLongBits
@HotSpotIntrinsicCandidate public static long doubleToLongBits(double value)
From source file:com.opengamma.analytics.financial.model.option.definition.SimpleChooserOptionDefinition.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }// w ww .ja v a2 s. com if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } final SimpleChooserOptionDefinition other = (SimpleChooserOptionDefinition) obj; if (Double.doubleToLongBits(_underlyingStrike) != Double.doubleToLongBits(other._underlyingStrike)) { return false; } return ObjectUtils.equals(_underlyingExpiry, other._underlyingExpiry); }
From source file:com.opengamma.analytics.financial.covariance.ExponentialWeightedMovingAverageHistoricalVolatilityCalculator.java
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); long temp;/*from ww w. j a v a 2s . c o m*/ temp = Double.doubleToLongBits(_lambda); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + ((_returnCalculator == null) ? 0 : _returnCalculator.hashCode()); return result; }
From source file:com.opengamma.analytics.math.statistics.distribution.NonCentralChiSquaredDistribution.java
@Override public int hashCode() { final int prime = 31; int result = 1; long temp;//from w ww . ja v a 2 s .c om temp = Double.doubleToLongBits(_dofOverTwo); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_lambdaOverTwo); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.opengamma.analytics.financial.commodity.derivative.CommodityForward.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + _underlying.hashCode(); if (_firstDeliveryDate != null) { result = prime * result + _firstDeliveryDate.hashCode(); }/*from www . j av a 2 s . c o m*/ if (_lastDeliveryDate != null) { result = prime * result + _lastDeliveryDate.hashCode(); } result = prime * result + _unitName.hashCode(); result = prime * result + _settlementType.hashCode(); result = prime * result + _currency.hashCode(); long temp; temp = Double.doubleToLongBits(_expiry); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_amount); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_unitAmount); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_settlement); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_referencePrice); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.opengamma.analytics.financial.forex.derivative.ForexOptionDigital.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }// ww w . j ava 2s. c om if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final ForexOptionDigital other = (ForexOptionDigital) obj; if (Double.doubleToLongBits(_expirationTime) != Double.doubleToLongBits(other._expirationTime)) { return false; } if (_isCall != other._isCall) { return false; } if (_isLong != other._isLong) { return false; } if (!ObjectUtils.equals(_underlyingForex, other._underlyingForex)) { return false; } return true; }
From source file:com.opengamma.strata.math.impl.statistics.distribution.NonCentralChiSquaredDistribution.java
@Override public int hashCode() { int prime = 31; int result = 1; long temp;/*from w ww .j a v a 2 s.co m*/ temp = Double.doubleToLongBits(_dofOverTwo); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_lambdaOverTwo); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.htmlhifive.pitalium.image.model.RectangleArea.java
@Override public int hashCode() { int result;//from w ww .j a v a2 s . c o m long temp; final int hashPrime = 31; final int shiftBit = 32; temp = Double.doubleToLongBits(x); result = (int) (temp ^ (temp >>> shiftBit)); temp = Double.doubleToLongBits(y); result = hashPrime * result + (int) (temp ^ (temp >>> shiftBit)); temp = Double.doubleToLongBits(width); result = hashPrime * result + (int) (temp ^ (temp >>> shiftBit)); temp = Double.doubleToLongBits(height); result = hashPrime * result + (int) (temp ^ (temp >>> shiftBit)); return result; }
From source file:com.opengamma.analytics.financial.model.option.pricing.fourier.IntegratedCIRTimeChangeCharacteristicExponent.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }/*from ww w . j a v a 2 s . c o m*/ if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final IntegratedCIRTimeChangeCharacteristicExponent other = (IntegratedCIRTimeChangeCharacteristicExponent) obj; if (Double.doubleToLongBits(_kappa) != Double.doubleToLongBits(other._kappa)) { return false; } if (Double.doubleToLongBits(_lambda) != Double.doubleToLongBits(other._lambda)) { return false; } return Double.doubleToLongBits(_theta) == Double.doubleToLongBits(other._theta); }
From source file:is.illuminati.block.spyros.garmin.model.Length.java
@Override public boolean equals(final Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final Length other = (Length) obj; return Double.doubleToLongBits(value) == Double.doubleToLongBits(other.value); }
From source file:com.opengamma.analytics.financial.interestrate.future.derivative.InterestRateFutureOptionPremiumSecurity.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }//from ww w . ja va2 s. c om if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final InterestRateFutureOptionPremiumSecurity other = (InterestRateFutureOptionPremiumSecurity) obj; if (!ObjectUtils.equals(_discountingCurveName, other._discountingCurveName)) { return false; } if (Double.doubleToLongBits(_expirationTime) != Double.doubleToLongBits(other._expirationTime)) { return false; } if (!ObjectUtils.equals(_forwardCurveName, other._forwardCurveName)) { return false; } if (_isCall != other._isCall) { return false; } if (Double.doubleToLongBits(_strike) != Double.doubleToLongBits(other._strike)) { return false; } if (!ObjectUtils.equals(_underlyingFuture, other._underlyingFuture)) { return false; } return true; }