package com.google.common.collect; import java.io.Serializable; import java.util.Iterator; import java.util.Map; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public abstract class ImmutableMapEntrySet extends ImmutableSet> { abstract ImmutableMap map(); /* loaded from: classes2.dex */ static final class RegularEntrySet extends ImmutableMapEntrySet { private final transient ImmutableList> entries; private final transient ImmutableMap map; @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 final /* bridge */ /* synthetic */ Iterator iterator() { return iterator(); } 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 final 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 final UnmodifiableIterator> iterator() { return this.entries.iterator(); } @Override // com.google.common.collect.ImmutableMapEntrySet final ImmutableMap map() { return this.map; } @Override // com.google.common.collect.ImmutableSet final ImmutableList> createAsList() { return this.entries; } } @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(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: classes2.dex */ 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(); } } }