package e.a.q;

import com.seewo.libmcuservice.constant.ITVStateConstants;
import e.a.o.k;
import java.util.Map;

/* JADX INFO: compiled from: Tuples.kt */
/* JADX INFO: loaded from: classes.dex */
@d.n
public final class s0<K, V> extends j0<K, V, Map.Entry<? extends K, ? extends V>> {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private final e.a.o.f f2882c;

    /* JADX INFO: compiled from: Tuples.kt */
    @d.n
    private static final class a<K, V> implements Map.Entry<K, V> {

        /* JADX INFO: renamed from: c, reason: collision with root package name */
        private final K f2883c;

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        private final V f2884d;

        public a(K k, V v) {
            this.f2883c = k;
            this.f2884d = v;
        }

        @Override // java.util.Map.Entry
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof a)) {
                return false;
            }
            a aVar = (a) obj;
            return d.n0.c.s.a(getKey(), aVar.getKey()) && d.n0.c.s.a(getValue(), aVar.getValue());
        }

        @Override // java.util.Map.Entry
        public K getKey() {
            return this.f2883c;
        }

        @Override // java.util.Map.Entry
        public V getValue() {
            return this.f2884d;
        }

        @Override // java.util.Map.Entry
        public int hashCode() {
            return ((getKey() == null ? 0 : getKey().hashCode()) * 31) + (getValue() != null ? getValue().hashCode() : 0);
        }

        @Override // java.util.Map.Entry
        public V setValue(V v) {
            throw new UnsupportedOperationException("Operation is not supported for read-only collection");
        }

        public String toString() {
            return "MapEntry(key=" + getKey() + ", value=" + getValue() + ')';
        }
    }

    /* JADX INFO: compiled from: Tuples.kt */
    @d.n
    static final class b extends d.n0.c.t implements d.n0.b.l<e.a.o.a, d.g0> {

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        final /* synthetic */ e.a.b<K> f2885d;

        /* JADX INFO: renamed from: e, reason: collision with root package name */
        final /* synthetic */ e.a.b<V> f2886e;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(e.a.b<K> bVar, e.a.b<V> bVar2) {
            super(1);
            this.f2885d = bVar;
            this.f2886e = bVar2;
        }

        public final void c(e.a.o.a aVar) {
            d.n0.c.s.e(aVar, "$this$buildSerialDescriptor");
            e.a.o.a.b(aVar, "key", this.f2885d.getDescriptor(), null, false, 12, null);
            e.a.o.a.b(aVar, ITVStateConstants.KEY_VOICE_VALUE, this.f2886e.getDescriptor(), null, false, 12, null);
        }

        @Override // d.n0.b.l
        public /* bridge */ /* synthetic */ d.g0 e(e.a.o.a aVar) {
            c(aVar);
            return d.g0.f2578a;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public s0(e.a.b<K> bVar, e.a.b<V> bVar2) {
        super(bVar, bVar2, null);
        d.n0.c.s.e(bVar, "keySerializer");
        d.n0.c.s.e(bVar2, "valueSerializer");
        this.f2882c = e.a.o.i.c("kotlin.collections.Map.Entry", k.c.f2794a, new e.a.o.f[0], new b(bVar, bVar2));
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // e.a.q.j0
    /* JADX INFO: renamed from: d, reason: merged with bridge method [inline-methods] */
    public K a(Map.Entry<? extends K, ? extends V> entry) {
        d.n0.c.s.e(entry, "<this>");
        return entry.getKey();
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // e.a.q.j0
    /* JADX INFO: renamed from: e, reason: merged with bridge method [inline-methods] */
    public V b(Map.Entry<? extends K, ? extends V> entry) {
        d.n0.c.s.e(entry, "<this>");
        return entry.getValue();
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // e.a.q.j0
    /* JADX INFO: renamed from: f, reason: merged with bridge method [inline-methods] */
    public Map.Entry<K, V> c(K k, V v) {
        return new a(k, v);
    }

    @Override // e.a.b, e.a.j, e.a.a
    public e.a.o.f getDescriptor() {
        return this.f2882c;
    }
}
