package com.worklight.location.api.geo;

import com.worklight.location.internal.AbstractPosition;
import java.util.Date;

public class WLGeoPosition extends AbstractPosition
{
  private final WLCoordinate coordinate;

  protected WLGeoPosition()
  {
    this.coordinate = null;
  }

  public WLGeoPosition(WLCoordinate paramWLCoordinate, long paramLong)
  {
    super(paramLong);
    if (paramWLCoordinate == null)
      throw new IllegalArgumentException("coordinate is null");
    this.coordinate = paramWLCoordinate;
  }

  public boolean equals(Object paramObject)
  {
    if (this == paramObject);
    WLGeoPosition localWLGeoPosition;
    do
    {
      do
      {
        return true;
        if (!super.equals(paramObject))
          return false;
        if (getClass() != paramObject.getClass())
          return false;
        localWLGeoPosition = (WLGeoPosition)paramObject;
        if (this.coordinate != null)
          break;
      }
      while (localWLGeoPosition.coordinate == null);
      return false;
    }
    while (this.coordinate.equals(localWLGeoPosition.coordinate));
    return false;
  }

  public WLCoordinate getCoordinate()
  {
    return this.coordinate;
  }

  public int hashCode()
  {
    int i = 31 * super.hashCode();
    if (this.coordinate == null);
    for (int j = 0; ; j = this.coordinate.hashCode())
      return i + j;
  }

  public String toString()
  {
    return new Date(getTimestamp().longValue()) + " : " + this.coordinate.toString();
  }
}

/* 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.WLGeoPosition
 * JD-Core Version:    0.6.2
 */