mv$a.java 1.18 KB
import com.google.common.base.Preconditions;
import java.util.ConcurrentModificationException;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

final class mv$a
  implements Iterator<E>
{
  final Iterator<Map.Entry<E, np>> a;
  Map.Entry<E, np> b;
  int c;
  boolean d;
  
  mv$a(mv parammv)
  {
    this.a = mv.a(parammv).entrySet().iterator();
  }
  
  public final boolean hasNext()
  {
    return (this.c > 0) || (this.a.hasNext());
  }
  
  public final E next()
  {
    if (this.c == 0)
    {
      this.b = ((Map.Entry)this.a.next());
      this.c = ((np)this.b.getValue()).a;
    }
    this.c -= 1;
    this.d = true;
    return (E)this.b.getKey();
  }
  
  public final void remove()
  {
    Preconditions.checkState(this.d, "no calls to next() since the last call to remove()");
    if (((np)this.b.getValue()).a <= 0) {
      throw new ConcurrentModificationException();
    }
    if (((np)this.b.getValue()).a(-1) == 0) {
      this.a.remove();
    }
    mv.b(this.e);
    this.d = false;
  }
}


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