List of usage examples for java.lang Double doubleToLongBits
@HotSpotIntrinsicCandidate public static long doubleToLongBits(double value)
From source file:com.opengamma.analytics.financial.instrument.future.BondFutureOptionPremiumSecurityDefinition.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }/*from www .j av a 2 s .co m*/ if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final BondFutureOptionPremiumSecurityDefinition other = (BondFutureOptionPremiumSecurityDefinition) obj; if (!ObjectUtils.equals(_expirationDate, other._expirationDate)) { 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; }
From source file:com.scm.reader.livescanner.search.Search.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((detail == null) ? 0 : detail.hashCode()); result = prime * result + (pending ? 1231 : 1237); result = prime * result + (int) (id ^ (id >>> 32)); long temp;//from w ww . j av a 2s. c o m temp = Double.doubleToLongBits(latitude); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(longitude); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + (recognized ? 1231 : 1237); result = prime * result + ((searchTime == null) ? 0 : searchTime.hashCode()); result = prime * result + (int) (selectedSearchResultId ^ (selectedSearchResultId >>> 32)); result = prime * result + ((title == null) ? 0 : title.hashCode()); result = prime * result + ((url == null) ? 0 : url.hashCode()); result = prime * result + ((uuid == null) ? 0 : uuid.hashCode()); return result; }
From source file:is.illuminati.block.spyros.garmin.model.Speed.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 Speed other = (Speed) obj; return Double.doubleToLongBits(value) == Double.doubleToLongBits(other.value); }
From source file:com.opengamma.analytics.financial.interestrate.swaption.derivative.SwaptionCashFixedCompoundedONCompounded.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }/*from www.j a v a 2 s. co m*/ if (!super.equals(obj)) { return false; } final SwaptionCashFixedCompoundedONCompounded other = (SwaptionCashFixedCompoundedONCompounded) obj; if (_isLong != other._isLong) { return false; } if (Double.doubleToLongBits(_settlementTime) != Double.doubleToLongBits(other._settlementTime)) { return false; } if (!ObjectUtils.equals(_underlyingSwap, other._underlyingSwap)) { return false; } return true; }
From source file:com.opengamma.analytics.financial.interestrate.payments.derivative.CouponCMS.java
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); long temp;//from w w w .j a v a2 s. co m temp = Double.doubleToLongBits(_settlementTime); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + ((_underlyingSwap == null) ? 0 : _underlyingSwap.hashCode()); return result; }
From source file:com.opengamma.analytics.math.statistics.distribution.NonCentralChiSquaredDistribution.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }/* w w w . java 2s .c o m*/ if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final NonCentralChiSquaredDistribution other = (NonCentralChiSquaredDistribution) obj; if (Double.doubleToLongBits(_dofOverTwo) != Double.doubleToLongBits(other._dofOverTwo)) { return false; } return Double.doubleToLongBits(_lambdaOverTwo) == Double.doubleToLongBits(other._lambdaOverTwo); }
From source file:com.opengamma.strata.math.impl.statistics.distribution.NonCentralChiSquaredDistribution.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/*from w w w. ja v a2 s .c o m*/ if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } NonCentralChiSquaredDistribution other = (NonCentralChiSquaredDistribution) obj; if (Double.doubleToLongBits(_dofOverTwo) != Double.doubleToLongBits(other._dofOverTwo)) { return false; } return Double.doubleToLongBits(_lambdaOverTwo) == Double.doubleToLongBits(other._lambdaOverTwo); }
From source file:com.opengamma.analytics.financial.forex.definition.ForexNonDeliverableForwardDefinition.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + _currency1.hashCode(); result = prime * result + _currency2.hashCode(); long temp;/*from w w w . j a v a 2 s .c o m*/ temp = Double.doubleToLongBits(_exchangeRate); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + _fixingDate.hashCode(); temp = Double.doubleToLongBits(_notional); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + _paymentDate.hashCode(); return result; }
From source file:com.opengamma.analytics.financial.covariance.ExponentialWeightedMovingAverageHistoricalVolatilityCalculator.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }// ww w .ja v a2s . c o m if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } final ExponentialWeightedMovingAverageHistoricalVolatilityCalculator other = (ExponentialWeightedMovingAverageHistoricalVolatilityCalculator) obj; if (Double.doubleToLongBits(_lambda) != Double.doubleToLongBits(other._lambda)) { return false; } return ObjectUtils.equals(_returnCalculator, other._returnCalculator); }
From source file:com.opengamma.analytics.financial.instrument.future.BondFuturesTransactionDefinition.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + _quantity; result = prime * result + _tradeDate.hashCode(); long temp;//from w ww . ja va 2 s . co m temp = Double.doubleToLongBits(_tradePrice); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + _underlyingFuture.hashCode(); return result; }