zzf.java 2.79 KB
package com.google.android.gms.common.data;

import java.util.ArrayList;

public abstract class zzf<T>
  extends AbstractDataBuffer<T>
{
  private boolean a = false;
  private ArrayList<Integer> b;
  
  protected zzf(DataHolder paramDataHolder)
  {
    super(paramDataHolder);
  }
  
  private int a(int paramInt)
  {
    if ((paramInt < 0) || (paramInt >= this.b.size())) {
      throw new IllegalArgumentException(53 + "Position " + paramInt + " is out of bounds for this buffer");
    }
    return ((Integer)this.b.get(paramInt)).intValue();
  }
  
  private void a()
  {
    for (;;)
    {
      int i;
      String str2;
      try
      {
        if (this.a) {
          break label204;
        }
        int j = this.zzaBi.getCount();
        this.b = new ArrayList();
        if (j <= 0) {
          break label199;
        }
        this.b.add(Integer.valueOf(0));
        String str3 = zzxn();
        i = this.zzaBi.zzcI(0);
        String str1 = this.zzaBi.zzd(str3, 0, i);
        i = 1;
        if (i >= j) {
          break label199;
        }
        int k = this.zzaBi.zzcI(i);
        str2 = this.zzaBi.zzd(str3, i, k);
        if (str2 == null) {
          throw new NullPointerException(String.valueOf(str3).length() + 78 + "Missing value for markerColumn: " + str3 + ", at row: " + i + ", for window: " + k);
        }
      }
      finally {}
      if (!str2.equals(localObject1))
      {
        this.b.add(Integer.valueOf(i));
        Object localObject2 = str2;
        break label207;
        label199:
        this.a = true;
        label204:
        return;
      }
      label207:
      i += 1;
    }
  }
  
  public final T get(int paramInt)
  {
    a();
    return (T)zzo(a(paramInt), zzcN(paramInt));
  }
  
  public int getCount()
  {
    a();
    return this.b.size();
  }
  
  protected int zzcN(int paramInt)
  {
    int j;
    if ((paramInt < 0) || (paramInt == this.b.size()))
    {
      j = 0;
      return j;
    }
    if (paramInt == this.b.size() - 1) {}
    for (int i = this.zzaBi.getCount() - ((Integer)this.b.get(paramInt)).intValue();; i = ((Integer)this.b.get(paramInt + 1)).intValue() - ((Integer)this.b.get(paramInt)).intValue())
    {
      j = i;
      if (i != 1) {
        break;
      }
      paramInt = a(paramInt);
      int k = this.zzaBi.zzcI(paramInt);
      String str = zzxp();
      j = i;
      if (str == null) {
        break;
      }
      j = i;
      if (this.zzaBi.zzd(str, paramInt, k) != null) {
        break;
      }
      return 0;
    }
  }
  
  protected abstract T zzo(int paramInt1, int paramInt2);
  
  protected abstract String zzxn();
  
  protected String zzxp()
  {
    return null;
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/common/data/zzf.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */