package com.google.common.collect; import com.google.common.base.Function; import com.ironsource.nb; import java.util.Map; /* loaded from: classes3.dex */ public abstract class Maps { /* renamed from: com.google.common.collect.Maps$1, reason: invalid class name */ public abstract class AnonymousClass1 extends TransformedIterator { } public enum EntryFunction implements Function { KEY { // from class: com.google.common.collect.Maps.EntryFunction.1 @Override // com.google.common.collect.Maps.EntryFunction, com.google.common.base.Function public Object apply(Map.Entry entry) { return entry.getKey(); } }, VALUE { // from class: com.google.common.collect.Maps.EntryFunction.2 @Override // com.google.common.collect.Maps.EntryFunction, com.google.common.base.Function public Object apply(Map.Entry entry) { return entry.getValue(); } }; @Override // com.google.common.base.Function public abstract /* synthetic */ Object apply(Object obj); /* synthetic */ EntryFunction(AnonymousClass1 anonymousClass1) { this(); } } public static Function keyFunction() { return EntryFunction.KEY; } public static Function valueFunction() { return EntryFunction.VALUE; } public static boolean equalsImpl(Map map, Object obj) { if (map == obj) { return true; } if (obj instanceof Map) { return map.entrySet().equals(((Map) obj).entrySet()); } return false; } public static String toStringImpl(Map map) { StringBuilder newStringBuilderForCollection = Collections2.newStringBuilderForCollection(map.size()); newStringBuilderForCollection.append('{'); boolean z = true; for (Map.Entry entry : map.entrySet()) { if (!z) { newStringBuilderForCollection.append(", "); } newStringBuilderForCollection.append(entry.getKey()); newStringBuilderForCollection.append(nb.T); newStringBuilderForCollection.append(entry.getValue()); z = false; } newStringBuilderForCollection.append('}'); return newStringBuilderForCollection.toString(); } }