package com.google.common.collect; import java.io.Serializable; import java.util.Iterator; import java.util.Map; /* loaded from: classes2.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 final boolean isPartialView() { return true; } @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 final /* bridge */ /* synthetic */ Iterator iterator() { return iterator(); } /* JADX INFO: Access modifiers changed from: package-private */ public ImmutableMapValues(ImmutableMap immutableMap) { this.map = immutableMap; } @Override // java.util.AbstractCollection, java.util.Collection public final 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 final UnmodifiableIterator iterator() { return new UnmodifiableIterator(this) { // from class: com.google.common.collect.ImmutableMapValues.1 final UnmodifiableIterator> entryItr; final ImmutableMapValues this$0; { this.this$0 = this; this.entryItr = 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 final boolean contains(Object obj) { return obj != null && Iterators.contains(iterator(), obj); } @Override // com.google.common.collect.ImmutableCollection public final ImmutableList asList() { return new ImmutableList(this, this.map.entrySet().asList()) { // from class: com.google.common.collect.ImmutableMapValues.2 final ImmutableList val$entryList; /* JADX INFO: Access modifiers changed from: package-private */ @Override // com.google.common.collect.ImmutableCollection public boolean isPartialView() { return true; } { this.val$entryList = r2; } @Override // java.util.List public V get(int i) { return (V) ((Map.Entry) this.val$entryList.get(i)).getValue(); } @Override // java.util.AbstractCollection, java.util.Collection, java.util.List public int size() { return this.val$entryList.size(); } }; } @Override // com.google.common.collect.ImmutableCollection final Object writeReplace() { return new SerializedForm(this.map); } /* loaded from: classes2.dex */ 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(); } } }