List of usage examples for java.lang Double doubleToLongBits
@HotSpotIntrinsicCandidate public static long doubleToLongBits(double value)
From source file:com.github.errantlinguist.latticevisualiser.StateSizeTransformer.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }//ww w . ja v a 2 s . co m if (obj == null) { return false; } if (!(obj instanceof StateSizeTransformer)) { return false; } final StateSizeTransformer other = (StateSizeTransformer) obj; if (graph == null) { if (other.graph != null) { return false; } } else if (!graph.equals(other.graph)) { return false; } if (minSize != other.minSize) { return false; } if (Double.doubleToLongBits(stateSizeMultiplier) != Double.doubleToLongBits(other.stateSizeMultiplier)) { return false; } return true; }
From source file:monasca.common.model.metric.Metric.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Metric)) return false; Metric other = (Metric) obj;//from www. j av a 2s . c o m if (definition == null) { if (other.definition != null) return false; } else if (!definition.equals(other.definition)) return false; if (dimensions == null) { if (other.dimensions != null) return false; } else if (!dimensions.equals(other.dimensions)) return false; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; if (!Arrays.deepEquals(timeValues, other.timeValues)) return false; if (timestamp != other.timestamp) return false; if (Double.doubleToLongBits(value) != Double.doubleToLongBits(other.value)) return false; return true; }
From source file:com.opengamma.analytics.financial.model.option.definition.twoasset.TwoAssetCorrelationOptionDefinition.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }/* w w w . j a va 2s . c om*/ if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } final TwoAssetCorrelationOptionDefinition other = (TwoAssetCorrelationOptionDefinition) obj; if (Double.doubleToLongBits(_payoutLevel) != Double.doubleToLongBits(other._payoutLevel)) { return false; } return true; }
From source file:com.opengamma.analytics.financial.model.interestrate.definition.HullWhiteTwoFactorDataBundle.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }/* ww w . j ava 2s . c om*/ if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } final HullWhiteTwoFactorDataBundle other = (HullWhiteTwoFactorDataBundle) obj; if (Double.doubleToLongBits(_correlation) != Double.doubleToLongBits(other._correlation)) { return false; } if (!ObjectUtils.equals(_forwardRateCurve, other._forwardRateCurve)) { return false; } if (Double.doubleToLongBits(_meanReversionLevel) != Double.doubleToLongBits(other._meanReversionLevel)) { return false; } if (Double.doubleToLongBits(_reversionSpeed1) != Double.doubleToLongBits(other._reversionSpeed1)) { return false; } if (Double.doubleToLongBits(_reversionSpeed2) != Double.doubleToLongBits(other._reversionSpeed2)) { return false; } return ObjectUtils.equals(_volatilityCurve2, other._volatilityCurve2); }
From source file:com.opengamma.analytics.math.minimization.SingleRangeLimitTransform.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }/* w ww. j a v a2 s . co m*/ if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final SingleRangeLimitTransform other = (SingleRangeLimitTransform) obj; if (Double.doubleToLongBits(_limit) != Double.doubleToLongBits(other._limit)) { return false; } return _sign == other._sign; }
From source file:com.opengamma.analytics.math.regression.LeastSquaresRegressionResult.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(_betas); result = prime * result + (_hasIntercept ? 1231 : 1237); long temp;//w ww. ja v a 2 s . com temp = Double.doubleToLongBits(_meanSquareError); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + Arrays.hashCode(_pValues); temp = Double.doubleToLongBits(_rSquared); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_rSquaredAdjusted); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + Arrays.hashCode(_residuals); result = prime * result + Arrays.hashCode(_standardErrorOfBeta); result = prime * result + Arrays.hashCode(_tStats); return result; }
From source file:com.opengamma.analytics.financial.equity.future.derivative.EquityFuture.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/*from ww w . j a va 2s . c om*/ if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } EquityFuture other = (EquityFuture) obj; if (!ObjectUtils.equals(_currency, other._currency)) { return false; } if (Double.doubleToLongBits(_unitAmount) != Double.doubleToLongBits(other._unitAmount)) { return false; } if (Double.doubleToLongBits(_strike) != Double.doubleToLongBits(other._strike)) { return false; } if (Double.doubleToLongBits(_timeToSettlement) != Double.doubleToLongBits(other._timeToSettlement)) { return false; } if (Double.doubleToLongBits(_timeToExpiry) != Double.doubleToLongBits(other._timeToExpiry)) { return false; } return true; }
From source file:com.opengamma.analytics.financial.model.interestrate.curve.YieldAndDiscountAddZeroSpreadCurve.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }/* w w w . j a v a 2s . co m*/ if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } YieldAndDiscountAddZeroSpreadCurve other = (YieldAndDiscountAddZeroSpreadCurve) obj; if (!Arrays.equals(_curves, other._curves)) { return false; } if (Double.doubleToLongBits(_sign) != Double.doubleToLongBits(other._sign)) { return false; } return true; }
From source file:com.opengamma.analytics.math.statistics.distribution.LaplaceDistribution.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }/*from ww w. j av a2 s . c o m*/ if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final LaplaceDistribution other = (LaplaceDistribution) obj; if (Double.doubleToLongBits(_b) != Double.doubleToLongBits(other._b)) { return false; } return Double.doubleToLongBits(_mu) == Double.doubleToLongBits(other._mu); }
From source file:io.fouad.jtb.core.beans.InputVenueMessageContent.java
@Override public int hashCode() { int result;/*from w w w .j av a 2 s .c o m*/ long temp; temp = Double.doubleToLongBits(latitude); result = (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(longitude); result = 31 * result + (int) (temp ^ (temp >>> 32)); result = 31 * result + (title != null ? title.hashCode() : 0); result = 31 * result + (address != null ? address.hashCode() : 0); result = 31 * result + (foursquareId != null ? foursquareId.hashCode() : 0); return result; }