package com.google.common.collect; import java.io.Serializable; import java.util.Map; import javax.annotation.CheckForNull; /* JADX INFO: Access modifiers changed from: package-private */ @ElementTypesAreNonnullByDefault /* loaded from: classes3.dex */ public abstract class ImmutableMapEntrySet extends ImmutableSet> { abstract ImmutableMap map(); /* loaded from: classes3.dex */ static final class RegularEntrySet extends ImmutableMapEntrySet { private final transient ImmutableList> entries; private final transient ImmutableMap map; /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ImmutableSet public ImmutableList> createAsList() { return this.entries; } @Override // com.google.common.collect.ImmutableMapEntrySet ImmutableMap map() { return this.map; } RegularEntrySet(ImmutableMap immutableMap, Map.Entry[] entryArr) { this(immutableMap, ImmutableList.asImmutableList(entryArr)); } RegularEntrySet(ImmutableMap immutableMap, ImmutableList> immutableList) { this.map = immutableMap; this.entries = immutableList; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ImmutableCollection public int copyIntoArray(Object[] objArr, int i) { return this.entries.copyIntoArray(objArr, i); } @Override // com.google.common.collect.ImmutableSet, com.google.common.collect.ImmutableCollection, java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set, java.util.NavigableSet, com.google.common.collect.SortedIterable public UnmodifiableIterator> iterator() { return this.entries.iterator(); } } @Override // java.util.AbstractCollection, java.util.Collection, java.util.Set public int size() { return map().size(); } @Override // com.google.common.collect.ImmutableCollection, java.util.AbstractCollection, java.util.Collection, java.util.Set public boolean contains(@CheckForNull Object obj) { if (!(obj instanceof Map.Entry)) { return false; } Map.Entry entry = (Map.Entry) obj; V v = map().get(entry.getKey()); return v != null && v.equals(entry.getValue()); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ImmutableCollection public boolean isPartialView() { return map().isPartialView(); } @Override // com.google.common.collect.ImmutableSet boolean isHashCodeFast() { return map().isHashCodeFast(); } @Override // com.google.common.collect.ImmutableSet, java.util.Collection, java.util.Set public int hashCode() { return map().hashCode(); } @Override // com.google.common.collect.ImmutableSet, com.google.common.collect.ImmutableCollection Object writeReplace() { return new EntrySetSerializedForm(map()); } /* loaded from: classes3.dex */ private static class EntrySetSerializedForm implements Serializable { private static final long serialVersionUID = 0; final ImmutableMap map; EntrySetSerializedForm(ImmutableMap immutableMap) { this.map = immutableMap; } Object readResolve() { return this.map.entrySet(); } } }