package com.google.android.m4b.maps.bu;

import com.google.android.m4b.maps.model.LatLng;
import com.google.android.m4b.maps.model.PolylineOptions;
import com.google.android.m4b.maps.model.internal.IPolylineDelegate;
import com.google.android.m4b.maps.model.internal.IPolylineDelegate.Stub;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

public final class bj extends IPolylineDelegate.Stub
  implements bf.a, bh
{
  private static AtomicInteger a = new AtomicInteger(0);
  private static final PolylineOptions b = new PolylineOptions();
  private final String c;
  private final bf d;
  private final cb e;
  private bh.a f;
  private by g;
  private List<LatLng> h;
  private List<LatLng> i;
  private int j;
  private float k;
  private boolean l;
  private float m;
  private boolean n;
  private boolean o;

  bj(PolylineOptions paramPolylineOptions, bf parambf, cb paramcb, by paramby)
  {
    this.d = ((bf)Preconditions.checkNotNull(parambf));
    this.e = ((cb)Preconditions.checkNotNull(paramcb));
    this.g = paramby;
    Object[] arrayOfObject = new Object[1];
    arrayOfObject[0] = Integer.valueOf(a.getAndIncrement());
    this.c = String.format("pl%d", arrayOfObject);
    if (paramPolylineOptions.getWidth() >= 0.0F);
    for (boolean bool = true; ; bool = false)
    {
      Preconditions.checkArgument(bool, "line width is negative");
      this.k = paramPolylineOptions.getWidth();
      this.j = paramPolylineOptions.getColor();
      this.m = paramPolylineOptions.getZIndex();
      this.o = paramPolylineOptions.isVisible();
      this.n = paramPolylineOptions.isGeodesic();
      this.h = Lists.newArrayList(paramPolylineOptions.getPoints());
      i();
      if (paramPolylineOptions.getColor() != b.getColor())
        this.e.b(cb.a.B);
      if (paramPolylineOptions.getWidth() != b.getWidth())
        this.e.b(cb.a.A);
      if (paramPolylineOptions.isGeodesic() != b.isGeodesic())
        this.e.b(cb.a.E);
      if (paramPolylineOptions.isVisible() != b.isVisible())
        this.e.b(cb.a.D);
      if (paramPolylineOptions.getZIndex() != b.getZIndex())
        this.e.b(cb.a.C);
      return;
    }
  }

  private void a(int paramInt)
  {
    try
    {
      if (this.l)
        return;
      this.f.a(paramInt);
      return;
    }
    finally
    {
    }
  }

  private void i()
  {
    try
    {
      if (this.n);
      for (List localList = q.a(this.h); ; localList = this.h)
      {
        this.i = localList;
        return;
      }
    }
    finally
    {
    }
  }

  public final void a()
  {
    try
    {
      if (this.l)
        return;
      this.l = true;
      this.f.a();
      return;
    }
    finally
    {
    }
  }

  final void a(bh.a parama)
  {
    this.f = parama;
  }

  public final List<LatLng> b()
  {
    try
    {
      List localList = this.i;
      return localList;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public final List<List<LatLng>> c()
  {
    return Collections.emptyList();
  }

  public final int d()
  {
    try
    {
      int i1 = this.j;
      return i1;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public final int e()
  {
    return 0;
  }

  public final boolean equalsRemote(IPolylineDelegate paramIPolylineDelegate)
  {
    return equals(paramIPolylineDelegate);
  }

  public final float f()
  {
    try
    {
      float f1 = this.k;
      return f1;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public final float g()
  {
    try
    {
      float f1 = this.m;
      return f1;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public final int getColor()
  {
    this.g.a();
    return d();
  }

  public final String getId()
  {
    return this.c;
  }

  public final List<LatLng> getPoints()
  {
    this.g.a();
    return Lists.newArrayList(this.h);
  }

  public final float getWidth()
  {
    this.g.a();
    return f();
  }

  public final float getZIndex()
  {
    this.g.a();
    return g();
  }

  public final boolean h()
  {
    try
    {
      boolean bool = this.o;
      return bool;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public final int hashCodeRemote()
  {
    return hashCode();
  }

  public final boolean isGeodesic()
  {
    this.g.a();
    return this.n;
  }

  public final boolean isVisible()
  {
    this.g.a();
    return h();
  }

  public final void remove()
  {
    this.g.a();
    this.e.b(cb.a.y);
    a();
    this.d.b(this);
  }

  public final void setColor(int paramInt)
  {
    this.g.a();
    this.e.b(cb.a.B);
    try
    {
      this.j = paramInt;
      a(8);
      return;
    }
    finally
    {
    }
  }

  public final void setGeodesic(boolean paramBoolean)
  {
    this.g.a();
    this.e.b(cb.a.E);
    this.n = paramBoolean;
    i();
  }

  public final void setPoints(List<LatLng> paramList)
  {
    this.g.a();
    this.e.b(cb.a.z);
    this.h = Lists.newArrayList(paramList);
    i();
    a(1);
  }

  public final void setVisible(boolean paramBoolean)
  {
    this.g.a();
    this.e.b(cb.a.D);
    try
    {
      this.o = paramBoolean;
      a(32);
      return;
    }
    finally
    {
    }
  }

  public final void setWidth(float paramFloat)
  {
    this.g.a();
    this.e.b(cb.a.A);
    boolean bool;
    if (paramFloat >= 0.0F)
      bool = true;
    while (true)
    {
      Preconditions.checkArgument(bool, "line width is negative");
      try
      {
        this.k = paramFloat;
        return;
        bool = false;
      }
      finally
      {
      }
    }
  }

  public final void setZIndex(float paramFloat)
  {
    this.g.a();
    this.e.b(cb.a.C);
    try
    {
      this.m = paramFloat;
      a(64);
      return;
    }
    finally
    {
    }
  }
}

/* Location:           C:\Documents and Settings\Cesar Cabello Cea\Mis documentos\Downloads\apk-downloader\com.ikea.kompis-6_dex2jar.jar
 * Qualified Name:     com.google.android.m4b.maps.bu.bj
 * JD-Core Version:    0.6.2
 */