mu$b.java 1.13 KB
import com.google.common.collect.Iterators;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;

abstract class mu$b<T>
  implements Iterator<T>
{
  final Iterator<Map.Entry<K, Collection<V>>> b;
  K c;
  Collection<V> d;
  Iterator<V> e;
  
  mu$b(mu parammu)
  {
    this.b = mu.a(parammu).entrySet().iterator();
    this.c = null;
    this.d = null;
    this.e = Iterators.a();
  }
  
  abstract T a(K paramK, V paramV);
  
  public boolean hasNext()
  {
    return (this.b.hasNext()) || (this.e.hasNext());
  }
  
  public T next()
  {
    if (!this.e.hasNext())
    {
      Map.Entry localEntry = (Map.Entry)this.b.next();
      this.c = localEntry.getKey();
      this.d = ((Collection)localEntry.getValue());
      this.e = this.d.iterator();
    }
    return (T)a(this.c, this.e.next());
  }
  
  public void remove()
  {
    this.e.remove();
    if (this.d.isEmpty()) {
      this.b.remove();
    }
    mu.b(this.f);
  }
}


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