package com.google.common.collect; import com.google.common.base.Objects; import java.util.Map; /* loaded from: classes.dex */ abstract class AbstractMapEntry implements Map.Entry { AbstractMapEntry() { } @Override // java.util.Map.Entry public boolean equals(Object obj) { if (!(obj instanceof Map.Entry)) { return false; } Map.Entry entry = (Map.Entry) obj; return Objects.a(getKey(), entry.getKey()) && Objects.a(getValue(), entry.getValue()); } @Override // java.util.Map.Entry public abstract K getKey(); @Override // java.util.Map.Entry public abstract V getValue(); @Override // java.util.Map.Entry public int hashCode() { K key = getKey(); V value = getValue(); return (key == null ? 0 : key.hashCode()) ^ (value != null ? value.hashCode() : 0); } @Override // java.util.Map.Entry public V setValue(V v) { throw new UnsupportedOperationException(); } public String toString() { return getKey() + "=" + getValue(); } }