package com.worklight.location.api.geo;

import com.worklight.location.internal.geo.AreaVisitor;
import java.util.ArrayList;
import java.util.List;

public class WLPolygon
  implements WLArea
{
  private final List<WLCoordinate> coordinates;
  public final int length;

  public WLPolygon(List<WLCoordinate> paramList)
  {
    if (paramList == null)
      throw new IllegalArgumentException("coordinates was null");
    if (paramList.isEmpty())
      throw new IllegalArgumentException("coordinates list was empty");
    this.coordinates = new ArrayList(paramList);
    this.length = paramList.size();
  }

  public Object accept(AreaVisitor paramAreaVisitor)
  {
    return paramAreaVisitor.visitPolygon(this);
  }

  public boolean equals(Object paramObject)
  {
    if (this == paramObject);
    WLPolygon localWLPolygon;
    do
    {
      do
      {
        return true;
        if (paramObject == null)
          return false;
        if (getClass() != paramObject.getClass())
          return false;
        localWLPolygon = (WLPolygon)paramObject;
        if (this.coordinates != null)
          break;
      }
      while (localWLPolygon.coordinates == null);
      return false;
    }
    while (this.coordinates.equals(localWLPolygon.coordinates));
    return false;
  }

  public WLCoordinate get(int paramInt)
  {
    return (WLCoordinate)this.coordinates.get(paramInt);
  }

  public List<WLCoordinate> getCoordinates()
  {
    return new ArrayList(this.coordinates);
  }

  public int hashCode()
  {
    if (this.coordinates == null);
    for (int i = 0; ; i = this.coordinates.hashCode())
      return i + 31;
  }

  public String toString()
  {
    return "WLPolygon: " + this.coordinates;
  }
}

/* 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.WLPolygon
 * JD-Core Version:    0.6.2
 */