List of usage examples for java.lang Double doubleToLongBits
@HotSpotIntrinsicCandidate public static long doubleToLongBits(double value)
From source file:com.opengamma.analytics.financial.interestrate.future.derivative.BondFutureOptionPremiumSecurity.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }//from www . j a v a2 s .c o m if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final BondFutureOptionPremiumSecurity other = (BondFutureOptionPremiumSecurity) obj; if (!ObjectUtils.equals(_discountingCurveName, other._discountingCurveName)) { return false; } if (Double.doubleToLongBits(_expirationTime) != Double.doubleToLongBits(other._expirationTime)) { 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.loadtesting.core.data.TimeSerieData.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TimeSerieData other = (TimeSerieData) obj; if (Double.doubleToLongBits(closing) != Double.doubleToLongBits(other.closing)) return false; if (Double.doubleToLongBits(geometricMean) != Double.doubleToLongBits(other.geometricMean)) return false; if (Double.doubleToLongBits(high) != Double.doubleToLongBits(other.high)) return false; if (Double.doubleToLongBits(kurtosis) != Double.doubleToLongBits(other.kurtosis)) return false; if (Double.doubleToLongBits(low) != Double.doubleToLongBits(other.low)) return false; if (Double.doubleToLongBits(median) != Double.doubleToLongBits(other.median)) return false; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; if (Double.doubleToLongBits(opening) != Double.doubleToLongBits(other.opening)) return false; if (Double.doubleToLongBits(populationVariance) != Double.doubleToLongBits(other.populationVariance)) return false; if (samples == null) { if (other.samples != null) return false; } else if (!samples.equals(other.samples)) return false; if (Double.doubleToLongBits(sd) != Double.doubleToLongBits(other.sd)) return false; if (Double.doubleToLongBits(skewness) != Double.doubleToLongBits(other.skewness)) return false; if (Double.doubleToLongBits(sma) != Double.doubleToLongBits(other.sma)) return false; if (Double.doubleToLongBits(sum) != Double.doubleToLongBits(other.sum)) return false; if (Double.doubleToLongBits(sumsq) != Double.doubleToLongBits(other.sumsq)) return false; if (Double.doubleToLongBits(typical) != Double.doubleToLongBits(other.typical)) return false; if (unit != other.unit) return false; if (Double.doubleToLongBits(variance) != Double.doubleToLongBits(other.variance)) return false; if (volume != other.volume) return false; if (Double.doubleToLongBits(weightedClose) != Double.doubleToLongBits(other.weightedClose)) return false; return true;/* w w w . j ava 2s . co m*/ }
From source file:com.medlog.webservice.vo.pairs.ToneKeyValuePair.java
@Override public int hashCode() { int hash = 5; hash = 89 * hash + (int) (Double.doubleToLongBits(this.getValue()) ^ (Double.doubleToLongBits(this.getValue()) >>> 32)); hash = 89 * hash + (int) (Double.doubleToLongBits(this.getWeightedValue()) ^ (Double.doubleToLongBits(this.getWeightedValue()) >>> 32)); hash = 89 * hash + Objects.hashCode(this.getKey()); return hash;//ww w.jav a 2 s .c om }
From source file:org.openiot.gsn.http.rest.PushDelivery.java
@Override public int hashCode() { int result;//from w w w.j a v a 2s . c o m long temp; result = httpPut != null ? httpPut.getURI().hashCode() : 0; temp = notificationId != +0.0d ? Double.doubleToLongBits(notificationId) : 0L; result = 31 * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.inform.jamps.solver.gurobi.GurobiVariable.java
@Override public final int hashCode() { final int prime = 31; int result = 1; result = prime * result + name.hashCode(); result = prime * result + type.hashCode(); long temp;//from www . j a v a 2 s . c o m temp = Double.doubleToLongBits(lowerBound); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(upperBound); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.opengamma.analytics.financial.interestrate.payments.derivative.Payment.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }//from www.j a va 2 s. c o m if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Payment other = (Payment) obj; if (!ObjectUtils.equals(_currency, other._currency)) { return false; } if (!ObjectUtils.equals(_fundingCurveName, other._fundingCurveName)) { return false; } if (Double.doubleToLongBits(_paymentTime) != Double.doubleToLongBits(other._paymentTime)) { return false; } return true; }
From source file:com.opengamma.analytics.financial.forex.definition.ForexOptionSingleBarrierDefinition.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + _barrier.hashCode(); long temp;/* ww w .j a v a 2 s . co m*/ temp = Double.doubleToLongBits(_rebate); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + _underlyingOption.hashCode(); return result; }
From source file:com.opengamma.analytics.financial.model.finitedifference.applications.TwoStateMarkovChainDataBundle.java
@Override public boolean equals(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; } TwoStateMarkovChainDataBundle other = (TwoStateMarkovChainDataBundle) obj; if (Double.doubleToLongBits(_beta1) != Double.doubleToLongBits(other._beta1)) { return false; } if (Double.doubleToLongBits(_beta2) != Double.doubleToLongBits(other._beta2)) { return false; } if (Double.doubleToLongBits(_lambda12) != Double.doubleToLongBits(other._lambda12)) { return false; } if (Double.doubleToLongBits(_lambda21) != Double.doubleToLongBits(other._lambda21)) { return false; } if (Double.doubleToLongBits(_p0) != Double.doubleToLongBits(other._p0)) { return false; } if (Double.doubleToLongBits(_vol1) != Double.doubleToLongBits(other._vol1)) { return false; } if (Double.doubleToLongBits(_vol2) != Double.doubleToLongBits(other._vol2)) { return false; } return true; }
From source file:com.opengamma.analytics.financial.equity.future.definition.EquityFutureDefinition.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + _currency.hashCode(); result = prime * result + _expiryDate.hashCode(); result = prime * result + _settlementDate.hashCode(); long temp;/*from www .j a v a2 s .c o m*/ temp = Double.doubleToLongBits(_strikePrice); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_unitAmount); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:org.spf4j.perf.impl.chart.InverseGrayScale.java
@Override public boolean equals(final Object obj) { if (obj == null) { return false; }/*from w w w. j a v a 2 s . c o m*/ if (getClass() != obj.getClass()) { return false; } final InverseGrayScale other = (InverseGrayScale) obj; if (Double.doubleToLongBits(this.lowerBound) != Double.doubleToLongBits(other.lowerBound)) { return false; } if (Double.doubleToLongBits(this.upperBound) != Double.doubleToLongBits(other.upperBound)) { return false; } if (this.alpha != other.alpha) { return false; } return true; }