List of usage examples for java.lang Double doubleToLongBits
@HotSpotIntrinsicCandidate public static long doubleToLongBits(double value)
From source file:com.opengamma.analytics.math.curve.ConstantDoublesCurve.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }//from www . j av a 2 s . c o m if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } final ConstantDoublesCurve other = (ConstantDoublesCurve) obj; return Double.doubleToLongBits(_y) == Double.doubleToLongBits(other._y); }
From source file:org.csml.tommo.sugar.heatmap.ColorPaintScale.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ColorPaintScale other = (ColorPaintScale) obj; if (Double.doubleToLongBits(maxValue) != Double.doubleToLongBits(other.maxValue)) return false; if (Double.doubleToLongBits(minValue) != Double.doubleToLongBits(other.minValue)) return false; return true;/*from w w w. j a v a 2s .c o m*/ }
From source file:org.zenoss.app.consumer.metric.data.Metric.java
@Override public int hashCode() { int result;/*from w w w . j av a 2s. c om*/ long temp; result = metric != null ? metric.hashCode() : 0; result = 31 * result + (int) (timestamp ^ (timestamp >>> 32)); temp = Double.doubleToLongBits(value); result = 31 * result + (int) (temp ^ (temp >>> 32)); result = 31 * result + (tags != null ? tags.hashCode() : 0); return result; }
From source file:com.opengamma.analytics.financial.model.option.definition.twoasset.TwoAssetCorrelationOptionDefinition.java
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); long temp;//from w ww .j av a 2s . c o m temp = Double.doubleToLongBits(_payoutLevel); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.opengamma.analytics.financial.model.interestrate.curve.YieldAndDiscountAddZeroSpreadCurve.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + Arrays.hashCode(_curves); long temp;/*from ww w. j ava2 s . c o m*/ temp = Double.doubleToLongBits(_sign); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:org.wicketstuff.gmap.api.GLatLng.java
/** * @see java.lang.Object#equals(java.lang.Object) *///from w w w. j av a2s .c o m @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } final GLatLng other = (GLatLng) obj; if (Double.doubleToLongBits(lat) != Double.doubleToLongBits(other.lat)) { return false; } if (Double.doubleToLongBits(lng) != Double.doubleToLongBits(other.lng)) { return false; } if (unbounded != other.unbounded) { return false; } return true; }
From source file:com.opengamma.analytics.math.minimization.SingleRangeLimitTransform.java
@Override public int hashCode() { final int prime = 31; int result = 1; long temp;/* ww w. j av a 2 s . com*/ temp = Double.doubleToLongBits(_limit); result = prime * result + (int) (temp ^ (temp >>> 32)); result = prime * result + _sign; return result; }
From source file:com.opengamma.analytics.math.statistics.distribution.LaplaceDistribution.java
@Override public int hashCode() { final int prime = 31; int result = 1; long temp;/* w w w . j a v a 2 s . c om*/ temp = Double.doubleToLongBits(_b); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_mu); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.bigml.histogram.Bin.java
@Override @SuppressWarnings("unchecked") public boolean equals(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 Bin<T> other = (Bin<T>) obj; return Double.doubleToLongBits(_mean) == Double.doubleToLongBits(other._mean); }
From source file:com.opengamma.analytics.financial.model.option.definition.SupershareOptionDefinition.java
@Override public boolean equals(final Object obj) { if (this == obj) { return true; }/*from w w w. j a v a2 s.c om*/ if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } final SupershareOptionDefinition other = (SupershareOptionDefinition) obj; if (Double.doubleToLongBits(_lowerBound) != Double.doubleToLongBits(other._lowerBound)) { return false; } if (Double.doubleToLongBits(_upperBound) != Double.doubleToLongBits(other._upperBound)) { return false; } return true; }