List of usage examples for java.lang Double doubleToLongBits
@HotSpotIntrinsicCandidate public static long doubleToLongBits(double value)
From source file:com.hpcloud.mon.common.model.alarm.AlarmSubExpression.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; AlarmSubExpression other = (AlarmSubExpression) obj; if (function != other.function) return false; if (metricDefinition == null) { if (other.metricDefinition != null) return false; } else if (!metricDefinition.equals(other.metricDefinition)) return false; if (operator != other.operator) return false; if (period != other.period) return false; if (periods != other.periods) return false; if (Double.doubleToLongBits(threshold) != Double.doubleToLongBits(other.threshold)) return false; return true;//from w w w .j a va 2 s.c o m }
From source file:com.opengamma.analytics.financial.interestrate.future.derivative.InterestRateFutureOptionPremiumTransaction.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_premium == null) ? 0 : _premium.hashCode()); result = prime * result + _quantity; long temp;/*from w ww .j a v a 2s. c om*/ temp = Double.doubleToLongBits(_tradePrice); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + _underlyingOption.hashCode(); return result; }
From source file:com.opengamma.analytics.financial.interestrate.future.derivative.BondFutureOptionPremiumSecurity.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (_discountingCurveName == null ? 0 : _discountingCurveName.hashCode()); long temp;/* w ww.j a va 2 s.co m*/ temp = Double.doubleToLongBits(_expirationTime); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + (_isCall ? 1231 : 1237); temp = Double.doubleToLongBits(_strike); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + _underlyingFuture.hashCode(); return result; }
From source file:com.controller.model.Product.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((productDescription == null) ? 0 : productDescription.hashCode()); result = prime * result + ((productName == null) ? 0 : productName.hashCode()); long temp;/*from www. j a v a2 s.c o m*/ temp = Double.doubleToLongBits(productPrice); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + ((productSerialNumber == null) ? 0 : productSerialNumber.hashCode()); result = prime * result + ((productSpecificationList == null) ? 0 : productSpecificationList.hashCode()); result = prime * result + ((productImageList == null) ? 0 : productImageList.hashCode()); return result; }
From source file:jsat.distributions.SingleValueDistribution.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/* w w w. j av a 2 s.c om*/ if (obj == null) { return false; } if (!(obj instanceof SingleValueDistribution)) { return false; } final SingleValueDistribution other = (SingleValueDistribution) obj; if (Double.doubleToLongBits(value) != Double.doubleToLongBits(other.value)) { return false; } return true; }
From source file:com.opengamma.analytics.financial.interestrate.future.derivative.SwapFuturesPriceDeliverableTransaction.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/*from w w w. j a va2s . c o m*/ if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } SwapFuturesPriceDeliverableTransaction other = (SwapFuturesPriceDeliverableTransaction) obj; if (_quantity != other._quantity) { return false; } if (Double.doubleToLongBits(_referencePrice) != Double.doubleToLongBits(other._referencePrice)) { return false; } if (!ObjectUtils.equals(_underlying, other._underlying)) { return false; } return true; }
From source file:com.opengamma.analytics.math.statistics.distribution.ChiSquareDistribution.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }//from w w w.j a va 2 s. c o m if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final ChiSquareDistribution other = (ChiSquareDistribution) obj; return Double.doubleToLongBits(_degrees) == Double.doubleToLongBits(other._degrees); }
From source file:io.seldon.client.beans.DimensionBean.java
@Override public int hashCode() { int result;/*from w w w .j a va 2 s . c o m*/ long temp; result = dimId; result = 31 * result + attr; result = 31 * result + val; result = 31 * result + (attrName != null ? attrName.hashCode() : 0); result = 31 * result + (valName != null ? valName.hashCode() : 0); temp = amount != +0.0d ? Double.doubleToLongBits(amount) : 0L; result = 31 * result + (int) (temp ^ (temp >>> 32)); result = 31 * result + (itemType != null ? itemType.hashCode() : 0); return result; }
From source file:com.opengamma.analytics.financial.model.option.pricing.fourier.EuropeanPriceIntegrand.java
@Override public int hashCode() { final int prime = 31; int result = 1; long temp;//w w w . j av a 2s.c om temp = Double.doubleToLongBits(_alpha); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + _ce.hashCode(); result = prime * result + (_useVarianceReduction ? 1231 : 1237); return result; }
From source file:com.opengamma.analytics.financial.model.interestrate.curve.PriceIndexCurveAddPriceIndexFixedCurve.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }// w w w . j a v a 2 s. c o m if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final PriceIndexCurveAddPriceIndexFixedCurve other = (PriceIndexCurveAddPriceIndexFixedCurve) obj; if (!ObjectUtils.equals(_curve, other._curve)) { return false; } if (!ObjectUtils.equals(_curveFixed, other._curveFixed)) { return false; } if (Double.doubleToLongBits(_sign) != Double.doubleToLongBits(other._sign)) { return false; } return true; }