package com.google.common.collect; import java.io.Serializable; import java.util.Map; import javax.annotation.CheckForNull; @ElementTypesAreNonnullByDefault /* loaded from: classes3.dex */ final class ImmutableMapValues extends ImmutableCollection { private final ImmutableMap map; /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ImmutableCollection public boolean isPartialView() { return true; } /* JADX INFO: Access modifiers changed from: package-private */ public ImmutableMapValues(ImmutableMap immutableMap) { this.map = immutableMap; } @Override // java.util.AbstractCollection, java.util.Collection public int size() { return this.map.size(); } @Override // 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 new UnmodifiableIterator() { // from class: com.google.common.collect.ImmutableMapValues.1 final UnmodifiableIterator> entryItr; { this.entryItr = ImmutableMapValues.this.map.entrySet().iterator(); } @Override // java.util.Iterator public boolean hasNext() { return this.entryItr.hasNext(); } @Override // java.util.Iterator public V next() { return this.entryItr.next().getValue(); } }; } @Override // com.google.common.collect.ImmutableCollection, java.util.AbstractCollection, java.util.Collection, java.util.Set public boolean contains(@CheckForNull Object obj) { return obj != null && Iterators.contains(iterator(), obj); } @Override // com.google.common.collect.ImmutableCollection public ImmutableList asList() { final ImmutableList> asList = this.map.entrySet().asList(); return new ImmutableList(this) { // from class: com.google.common.collect.ImmutableMapValues.2 /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ImmutableCollection public boolean isPartialView() { return true; } @Override // java.util.List public V get(int i) { return (V) ((Map.Entry) asList.get(i)).getValue(); } @Override // java.util.AbstractCollection, java.util.Collection, java.util.List public int size() { return asList.size(); } }; } @Override // com.google.common.collect.ImmutableCollection Object writeReplace() { return new SerializedForm(this.map); } /* loaded from: classes3.dex */ private static class SerializedForm implements Serializable { private static final long serialVersionUID = 0; final ImmutableMap map; SerializedForm(ImmutableMap immutableMap) { this.map = immutableMap; } Object readResolve() { return this.map.values(); } } }