class ParsePolygon implements Parcelable {

  @Override
  public boolean equals(Object obj) {
    if (obj == null || !(obj instanceof ParsePolygon)) {
      return false;
    }
    if (obj == this) {
      return true;
    }
    ParsePolygon other = (ParsePolygon) obj;

    if (coordinates.size() != other.getCoordinates().size()) {
      return false;
    }

    boolean isEqual = true;
    for (int i = 0; i < coordinates.size(); i += 1) {
      if (coordinates.get(i).getLatitude() != other.getCoordinates().get(i).getLatitude() ||
          coordinates.get(i).getLongitude() != other.getCoordinates().get(i).getLongitude()) {
        isEqual = false;
        break;
      }
    }
    return isEqual;
  }

  public  ParsePolygon(List<ParseGeoPoint> coords);
  public  ParsePolygon(ParsePolygon polygon);
  protected  ParsePolygon(Parcel source);
    ParsePolygon(Parcel source, ParseParcelDecoder decoder);

}