package com.fyber.inneractive.sdk.protobuf; import java.util.Iterator; import java.util.Map; /* loaded from: classes2.dex */ public final class a0 extends b0 { public static class a implements Map.Entry { public final Map.Entry a; public a(Map.Entry entry) { this.a = entry; } @Override // java.util.Map.Entry public final K getKey() { return this.a.getKey(); } @Override // java.util.Map.Entry public final Object getValue() { a0 value = this.a.getValue(); if (value == null) { return null; } return value.a(null); } @Override // java.util.Map.Entry public final Object setValue(Object obj) { if (!(obj instanceof o0)) { throw new IllegalArgumentException("LazyField now only used for MessageSet, and the value of MessageSet must be an instance of MessageLite"); } a0 value = this.a.getValue(); o0 o0Var = value.a; value.b = null; value.a = (o0) obj; return o0Var; } } public static class b implements Iterator> { public final Iterator> a; public b(Iterator> it) { this.a = it; } @Override // java.util.Iterator public final boolean hasNext() { return this.a.hasNext(); } @Override // java.util.Iterator public final Object next() { Map.Entry next = this.a.next(); return next.getValue() instanceof a0 ? new a(next) : next; } @Override // java.util.Iterator public final void remove() { this.a.remove(); } } @Override // com.fyber.inneractive.sdk.protobuf.b0 public final boolean equals(Object obj) { return a(null).equals(obj); } @Override // com.fyber.inneractive.sdk.protobuf.b0 public final int hashCode() { return a(null).hashCode(); } public final String toString() { return a(null).toString(); } }