pc$h.java 2.87 KB
import com.google.common.base.Preconditions;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.concurrent.atomic.AtomicReferenceArray;

abstract class pc$h<E>
  implements Iterator<E>
{
  int b;
  int c;
  pc.m<K, V> d;
  AtomicReferenceArray<pc.l<K, V>> e;
  pc.l<K, V> f;
  pc<K, V>.ad g;
  pc<K, V>.ad h;
  
  pc$h(pc parampc)
  {
    this.b = (parampc.e.length - 1);
    this.c = -1;
    b();
  }
  
  private boolean a(pc.l<K, V> paraml)
  {
    Object localObject2 = null;
    try
    {
      Object localObject4 = paraml.d();
      pc localpc = this.i;
      Object localObject1;
      if (paraml.d() == null) {
        localObject1 = localObject2;
      }
      while (localObject1 != null)
      {
        this.g = new pc.ad(this.i, localObject4, localObject1);
        return true;
        Object localObject3 = paraml.a().get();
        localObject1 = localObject2;
        if (localObject3 != null) {
          if (localpc.b())
          {
            boolean bool = localpc.a(paraml);
            localObject1 = localObject2;
            if (bool) {}
          }
          else
          {
            localObject1 = localObject3;
          }
        }
      }
      return false;
    }
    finally
    {
      this.d.a();
    }
  }
  
  private void b()
  {
    this.g = null;
    if (c()) {}
    do
    {
      do
      {
        do
        {
          ;;
          while (d()) {}
        } while (this.b < 0);
        pc.m[] arrayOfm = this.i.e;
        int j = this.b;
        this.b = (j - 1);
        this.d = arrayOfm[j];
      } while (this.d.b == 0);
      this.e = this.d.e;
      this.c = (this.e.length() - 1);
    } while (!d());
  }
  
  private boolean c()
  {
    if (this.f != null) {
      for (this.f = this.f.b(); this.f != null; this.f = this.f.b()) {
        if (a(this.f)) {
          return true;
        }
      }
    }
    return false;
  }
  
  private boolean d()
  {
    while (this.c >= 0)
    {
      Object localObject = this.e;
      int j = this.c;
      this.c = (j - 1);
      localObject = (pc.l)((AtomicReferenceArray)localObject).get(j);
      this.f = ((pc.l)localObject);
      if ((localObject != null) && ((a(this.f)) || (c()))) {
        return true;
      }
    }
    return false;
  }
  
  final pc<K, V>.ad a()
  {
    if (this.g == null) {
      throw new NoSuchElementException();
    }
    this.h = this.g;
    b();
    return this.h;
  }
  
  public boolean hasNext()
  {
    return this.g != null;
  }
  
  public void remove()
  {
    if (this.h != null) {}
    for (boolean bool = true;; bool = false)
    {
      Preconditions.checkState(bool, "no calls to next() since the last call to remove()");
      this.i.remove(this.h.getKey());
      this.h = null;
      return;
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/pc$h.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */