package com.worklight.location.api.geo;

public class WLCoordinate
{
  private final double accuracy;
  private final Double altitude;
  private final Double altitudeAccuracy;
  private final Double heading;
  private final double latitude;
  private final double longitude;
  private final Double speed;

  static
  {
    if (!WLCoordinate.class.desiredAssertionStatus());
    for (boolean bool = true; ; bool = false)
    {
      $assertionsDisabled = bool;
      return;
    }
  }

  public WLCoordinate(double paramDouble1, double paramDouble2)
  {
    this(paramDouble1, paramDouble2, null, 0.0D, null, null, null);
  }

  public WLCoordinate(double paramDouble1, double paramDouble2, double paramDouble3)
  {
    this(paramDouble1, paramDouble2, null, paramDouble3, null, null, null);
  }

  public WLCoordinate(double paramDouble1, double paramDouble2, Double paramDouble3, double paramDouble4, Double paramDouble5, Double paramDouble6, Double paramDouble7)
  {
    double d1 = paramDouble1 % 360.0D;
    double d2 = paramDouble2 % 360.0D;
    if ((d1 < -90.0D) && (d1 > -270.0D))
    {
      d1 = -180.0D - d1;
      d2 += 180.0D;
      if ((d1 <= 90.0D) || (d1 >= 270.0D))
        break label166;
      d1 = 180.0D - d1;
      d2 += 180.0D;
    }
    while (true)
    {
      if (d2 > 180.0D)
        d2 -= 360.0D;
      if (d2 < -180.0D)
        d2 += 360.0D;
      if (($assertionsDisabled) || (Math.abs(d1) <= 90.0D))
        break label186;
      throw new AssertionError();
      if (d1 >= -270.0D)
        break;
      d1 += 360.0D;
      break;
      label166: if (d1 > 270.0D)
        d1 -= 360.0D;
    }
    label186: assert (Math.abs(d2) <= 180.0D);
    this.latitude = d1;
    this.longitude = d2;
    if (paramDouble4 < 0.0D)
      throw new IllegalArgumentException("accuracy must be non-negative, was " + paramDouble4);
    this.accuracy = paramDouble4;
    if ((paramDouble3 != null) && (paramDouble3.doubleValue() < 0.0D))
      throw new IllegalArgumentException("altitude must be non-negative, was " + paramDouble3);
    this.altitude = paramDouble3;
    if ((paramDouble5 != null) && (paramDouble5.doubleValue() < 0.0D))
      throw new IllegalArgumentException("altitudeAccuracy must be non-negative, was " + paramDouble5);
    this.altitudeAccuracy = paramDouble5;
    if ((paramDouble6 != null) && ((paramDouble6.doubleValue() < 0.0D) || (paramDouble6.doubleValue() >= 360.0D)))
      throw new IllegalArgumentException("heading must conform to: 0 <= heading < 360, was " + paramDouble5);
    this.heading = paramDouble6;
    if ((paramDouble7 != null) && (paramDouble7.doubleValue() < 0.0D))
      throw new IllegalArgumentException("speed must be non-negative, was " + paramDouble7);
    this.speed = paramDouble7;
  }

  public boolean equals(Object paramObject)
  {
    if (this == paramObject);
    WLCoordinate localWLCoordinate;
    do
    {
      do
      {
        return true;
        if (paramObject == null)
          return false;
        if (getClass() != paramObject.getClass())
          return false;
        localWLCoordinate = (WLCoordinate)paramObject;
        if (Double.doubleToLongBits(this.accuracy) != Double.doubleToLongBits(localWLCoordinate.accuracy))
          return false;
        if (this.altitude == null)
        {
          if (localWLCoordinate.altitude != null)
            return false;
        }
        else if (!this.altitude.equals(localWLCoordinate.altitude))
          return false;
        if (this.altitudeAccuracy == null)
        {
          if (localWLCoordinate.altitudeAccuracy != null)
            return false;
        }
        else if (!this.altitudeAccuracy.equals(localWLCoordinate.altitudeAccuracy))
          return false;
        if (this.heading == null)
        {
          if (localWLCoordinate.heading != null)
            return false;
        }
        else if (!this.heading.equals(localWLCoordinate.heading))
          return false;
        if (Double.doubleToLongBits(this.latitude) != Double.doubleToLongBits(localWLCoordinate.latitude))
          return false;
        if (Double.doubleToLongBits(this.longitude) != Double.doubleToLongBits(localWLCoordinate.longitude))
          return false;
        if (this.speed != null)
          break;
      }
      while (localWLCoordinate.speed == null);
      return false;
    }
    while (this.speed.equals(localWLCoordinate.speed));
    return false;
  }

  public double getAccuracy()
  {
    return this.accuracy;
  }

  public Double getAltitude()
  {
    return this.altitude;
  }

  public Double getAltitudeAccuracy()
  {
    return this.altitudeAccuracy;
  }

  public Double getHeading()
  {
    return this.heading;
  }

  public double getLatitude()
  {
    return this.latitude;
  }

  public double getLongitude()
  {
    return this.longitude;
  }

  public Double getSpeed()
  {
    return this.speed;
  }

  public int hashCode()
  {
    long l1 = Double.doubleToLongBits(this.accuracy);
    int i = 31 * (31 + (int)(l1 ^ l1 >>> 32));
    int j;
    int m;
    label51: int i1;
    label71: int i4;
    int i5;
    if (this.altitude == null)
    {
      j = 0;
      int k = 31 * (i + j);
      if (this.altitudeAccuracy != null)
        break label165;
      m = 0;
      int n = 31 * (k + m);
      if (this.heading != null)
        break label177;
      i1 = 0;
      int i2 = n + i1;
      long l2 = Double.doubleToLongBits(this.latitude);
      int i3 = i2 * 31 + (int)(l2 ^ l2 >>> 32);
      long l3 = Double.doubleToLongBits(this.longitude);
      i4 = 31 * (i3 * 31 + (int)(l3 ^ l3 >>> 32));
      Double localDouble = this.speed;
      i5 = 0;
      if (localDouble != null)
        break label189;
    }
    while (true)
    {
      return i4 + i5;
      j = this.altitude.hashCode();
      break;
      label165: m = this.altitudeAccuracy.hashCode();
      break label51;
      label177: i1 = this.heading.hashCode();
      break label71;
      label189: i5 = this.speed.hashCode();
    }
  }

  public String toString()
  {
    StringBuilder localStringBuilder1 = new StringBuilder();
    Object[] arrayOfObject = new Object[2];
    arrayOfObject[0] = Double.valueOf(this.latitude);
    arrayOfObject[1] = Double.valueOf(this.longitude);
    StringBuilder localStringBuilder2 = localStringBuilder1.append(String.format("(%f,%f)", arrayOfObject));
    if (this.accuracy != 0.0D);
    for (String str = " ~" + this.accuracy; ; str = "")
      return str;
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.worklight.location.api.geo.WLCoordinate
 * JD-Core Version:    0.6.2
 */