package com.google.common.hash; import com.google.common.base.Supplier; import java.util.concurrent.atomic.AtomicLong; @ElementTypesAreNonnullByDefault /* loaded from: classes3.dex */ final class LongAddables { private static final Supplier SUPPLIER; LongAddables() { } static { Supplier supplier; try { new LongAdder(); supplier = new Supplier() { // from class: com.google.common.hash.LongAddables.1 /* JADX WARN: Can't rename method to resolve collision */ @Override // com.google.common.base.Supplier public LongAddable get() { return new LongAdder(); } }; } catch (Throwable unused) { supplier = new Supplier() { // from class: com.google.common.hash.LongAddables.2 /* JADX WARN: Can't rename method to resolve collision */ @Override // com.google.common.base.Supplier public LongAddable get() { return new PureJavaLongAddable(); } }; } SUPPLIER = supplier; } public static LongAddable create() { return SUPPLIER.get(); } /* JADX INFO: Access modifiers changed from: private */ /* loaded from: classes3.dex */ public static final class PureJavaLongAddable extends AtomicLong implements LongAddable { private PureJavaLongAddable() { } @Override // com.google.common.hash.LongAddable public void increment() { getAndIncrement(); } @Override // com.google.common.hash.LongAddable public void add(long j) { getAndAdd(j); } @Override // com.google.common.hash.LongAddable public long sum() { return get(); } } }