List of usage examples for java.lang Double doubleToLongBits
@HotSpotIntrinsicCandidate public static long doubleToLongBits(double value)
From source file:com.opengamma.analytics.financial.model.interestrate.curve.PriceIndexCurveAddPriceIndexSpreadCurve.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + _curves.hashCode(); long temp;/*from w w w . jav a 2 s . c o m*/ temp = Double.doubleToLongBits(_sign); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:monasca.api.app.command.CreateMetricCommand.java
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((dimensions == null) ? 0 : dimensions.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((timestamp == null) ? 0 : (int) (timestamp ^ (timestamp >>> 32))); long temp;// ww w . j ava 2 s . c o m temp = (value == null) ? 0 : Double.doubleToLongBits(value); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.opengamma.analytics.financial.simpleinstruments.definition.SimpleFutureDefinition.java
@Override public boolean equals(Object obj) { if (this == obj) { return true; }//ww w .j av a 2 s . com if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final SimpleFutureDefinition other = (SimpleFutureDefinition) obj; if (Double.doubleToLongBits(_referencePrice) != Double.doubleToLongBits(other._referencePrice)) { return false; } if (!ObjectUtils.equals(_expiryDate, other._expiryDate)) { return false; } if (!ObjectUtils.equals(_settlementDate, other._settlementDate)) { return false; } if (!ObjectUtils.equals(_currency, other._currency)) { return false; } if (Double.doubleToLongBits(_unitAmount) != Double.doubleToLongBits(other._unitAmount)) { return false; } return true; }
From source file:com.bigml.histogram.Bin.java
@Override public int hashCode() { int hash = 3; hash = 97 * hash + (int) (Double.doubleToLongBits(_mean) ^ (Double.doubleToLongBits(_mean) >>> 32)); return hash;/*from ww w. ja v a 2 s .c om*/ }
From source file:me.timothy.ddd.entities.EntityPosition.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; EntityPosition other = (EntityPosition) obj; if (height != other.height) return false; if (width != other.width) return false; if (Double.doubleToLongBits(x) != Double.doubleToLongBits(other.x)) return false; if (Double.doubleToLongBits(y) != Double.doubleToLongBits(other.y)) return false; return true;//from ww w . j a v a2 s .c o m }
From source file:com.eTilbudsavis.etasdk.model.Dimension.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Dimension other = (Dimension) obj; if (Double.doubleToLongBits(mHeight) != Double.doubleToLongBits(other.mHeight)) return false; if (Double.doubleToLongBits(mWidth) != Double.doubleToLongBits(other.mWidth)) return false; return true;/*from ww w.java2 s . com*/ }
From source file:com.opengamma.analytics.financial.model.finitedifference.applications.TwoStateMarkovChainDataBundle.java
@Override public int hashCode() { final int prime = 31; int result = 1; long temp;/*from w w w. j a v a 2s. co m*/ temp = Double.doubleToLongBits(_beta1); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_beta2); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_lambda12); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_lambda21); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_p0); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_vol1); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_vol2); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.hpcloud.mon.app.command.CreateMetricCommand.java
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; CreateMetricCommand other = (CreateMetricCommand) obj; 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; // Note - Deep Equals is used here 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;/* ww w. j a v a 2s. c om*/ }
From source file:com.opengamma.analytics.math.statistics.distribution.StudentTDistribution.java
@Override public int hashCode() { final int prime = 31; int result = 1; long temp;/* w ww .j a v a2s . c o m*/ temp = Double.doubleToLongBits(_degFreedom); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }
From source file:com.opengamma.analytics.financial.model.option.definition.twoasset.EuropeanExchangeAssetOptionDefinition.java
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); long temp;//from w w w. j a va2s .c o m temp = Double.doubleToLongBits(_firstQuantity); result = prime * result + (int) (temp ^ (temp >>> 32)); temp = Double.doubleToLongBits(_secondQuantity); result = prime * result + (int) (temp ^ (temp >>> 32)); return result; }