Example usage for java.lang Double doubleToLongBits

List of usage examples for java.lang Double doubleToLongBits

Introduction

In this page you can find the example usage for java.lang Double doubleToLongBits.

Prototype

@HotSpotIntrinsicCandidate
public static long doubleToLongBits(double value) 

Source Link

Document

Returns a representation of the specified floating-point value according to the IEEE 754 floating-point "double format" bit layout.

Usage

From source file:com.opengamma.analytics.financial.simpleinstruments.pricing.SimpleFXFutureDataBundle.java

@Override
public boolean equals(final Object obj) {
    if (this == obj) {
        return true;
    }// ww  w.j  av a2  s . c o m
    if (obj == null) {
        return false;
    }
    if (getClass() != obj.getClass()) {
        return false;
    }
    final SimpleFXFutureDataBundle other = (SimpleFXFutureDataBundle) obj;
    if (Double.doubleToLongBits(_spot) != Double.doubleToLongBits(other._spot)) {
        return false;
    }
    if (!ObjectUtils.equals(_payYieldCurve, other._payYieldCurve)) {
        return false;
    }
    if (!ObjectUtils.equals(_receiveYieldCurve, other._receiveYieldCurve)) {
        return false;
    }
    return true;
}

From source file:com.opengamma.analytics.financial.model.option.definition.Barrier.java

@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + _barrier.hashCode();
    result = prime * result + _knock.hashCode();
    result = prime * result + _observation.hashCode();
    long temp;//from   w w  w  .j a  v a2s .  c  o  m
    temp = Double.doubleToLongBits(_level);
    result = prime * result + (int) (temp ^ (temp >>> 32));
    return result;
}

From source file:com.opengamma.analytics.financial.simpleinstruments.derivative.SimpleFXFuture.java

@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + _payCurrency.hashCode();
    result = prime * result + _receiveCurrency.hashCode();
    long temp;/* w w w.j ava2 s .  c o  m*/
    temp = Double.doubleToLongBits(_expiry);
    result = prime * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(_referencePrice);
    result = prime * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(_settlement);
    result = prime * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(_unitAmount);
    result = prime * result + (int) (temp ^ (temp >>> 32));
    return result;
}

From source file:com.opengamma.analytics.financial.var.StudentTVaRParameters.java

@Override
public int hashCode() {
    final int prime = 31;
    int result = 1;
    long temp;//from w  ww. j a  v a  2 s .  co m
    temp = Double.doubleToLongBits(_dof);
    result = prime * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(_horizon);
    result = prime * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(_periods);
    result = prime * result + (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(_quantile);
    return result;
}

From source file:de.rallye.model.structures.LatLng.java

@Override
public int hashCode() {
    int result;/*from   www.  j av  a 2 s  . c  om*/
    long temp;
    temp = Double.doubleToLongBits(latitude);
    result = (int) (temp ^ (temp >>> 32));
    temp = Double.doubleToLongBits(longitude);
    result = 31 * result + (int) (temp ^ (temp >>> 32));
    return result;
}

From source file:com.mgmtp.perfload.loadprofiles.ui.util.Point.java

@Override
public boolean equals(final Object obj) {
    if (this == obj) {
        return true;
    }//from   w w  w.  jav  a 2s. c  o  m
    if (obj == null) {
        return false;
    }
    if (getClass() != obj.getClass()) {
        return false;
    }
    Point other = (Point) obj;
    if (Double.doubleToLongBits(x) != Double.doubleToLongBits(other.x)) {
        return false;
    }
    if (Double.doubleToLongBits(y) != Double.doubleToLongBits(other.y)) {
        return false;
    }
    return true;
}

From source file:com.opengamma.analytics.financial.interestrate.payments.derivative.PaymentFixed.java

@Override
public int hashCode() {
    final int prime = 31;
    int result = super.hashCode();
    long temp;/*from w  w w.  ja  va  2s  .  c  o  m*/
    temp = Double.doubleToLongBits(_amount);
    result = prime * result + (int) (temp ^ (temp >>> 32));
    return result;
}

From source file:com.opengamma.analytics.financial.model.option.pricing.analytic.formula.CEVFunctionData.java

@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }/*from   www. ja  v a 2s.c  om*/
    if (obj == null) {
        return false;
    }
    if (getClass() != obj.getClass()) {
        return false;
    }
    CEVFunctionData other = (CEVFunctionData) obj;
    if (Double.doubleToLongBits(_beta) != Double.doubleToLongBits(other._beta)) {
        return false;
    }
    if (Double.doubleToLongBits(_forward) != Double.doubleToLongBits(other._forward)) {
        return false;
    }
    if (Double.doubleToLongBits(_numeraire) != Double.doubleToLongBits(other._numeraire)) {
        return false;
    }
    if (Double.doubleToLongBits(_volatility) != Double.doubleToLongBits(other._volatility)) {
        return false;
    }
    return true;
}

From source file:de.codesourcery.geoip.Coordinate.java

@Override
public boolean equals(Object obj) {
    if (this == obj)
        return true;
    if (obj == null)
        return false;
    if (getClass() != obj.getClass())
        return false;
    Coordinate other = (Coordinate) obj;
    if (Double.doubleToLongBits(latitudeInDeg) != Double.doubleToLongBits(other.latitudeInDeg))
        return false;
    if (Double.doubleToLongBits(longitudeInDeg) != Double.doubleToLongBits(other.longitudeInDeg))
        return false;
    return true;//from w  ww.  j a  v a2 s.  c  o m
}

From source file:com.milaboratory.mitools.merger.MergerParameters.java

@Override
public int hashCode() {
    int result;//  ww  w. java  2s .c o  m
    long temp;
    result = minimalOverlap;
    temp = Double.doubleToLongBits(minimalIdentity);
    result = 31 * result + (int) (temp ^ (temp >>> 32));
    return result;
}