package com.worklight.location.api.geo;

import com.worklight.location.internal.geo.AreaVisitor;

public class WLCircle
  implements WLArea
{
  private final WLCoordinate center;
  private final double radius;

  public WLCircle(WLCoordinate paramWLCoordinate, double paramDouble)
  {
    if (paramWLCoordinate == null)
      throw new IllegalArgumentException("center is null");
    if (paramDouble < 0.0D)
      throw new IllegalArgumentException("radius must be non-negative, was " + paramDouble);
    this.center = paramWLCoordinate;
    this.radius = paramDouble;
  }

  public Object accept(AreaVisitor paramAreaVisitor)
  {
    return paramAreaVisitor.visitCircle(this);
  }

  public boolean equals(Object paramObject)
  {
    if (this == paramObject);
    WLCircle localWLCircle;
    do
    {
      return true;
      if (paramObject == null)
        return false;
      if (getClass() != paramObject.getClass())
        return false;
      localWLCircle = (WLCircle)paramObject;
      if (getCenter() == null)
      {
        if (localWLCircle.getCenter() != null)
          return false;
      }
      else if (!getCenter().equals(localWLCircle.getCenter()))
        return false;
    }
    while (getRadius() == localWLCircle.getRadius());
    return false;
  }

  public WLCoordinate getCenter()
  {
    return this.center;
  }

  public double getRadius()
  {
    return this.radius;
  }

  public int hashCode()
  {
    double d = 31.0D * 1.0D;
    if (getCenter() == null);
    for (int i = 0; ; i = getCenter().hashCode())
      return (int)(31.0D * (d + i) + getRadius());
  }
}

/* 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.WLCircle
 * JD-Core Version:    0.6.2
 */