what-the-bank/sources/com/google/common/util/concurrent/Atomics.java

27 lines
719 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.common.util.concurrent;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.atomic.AtomicReferenceArray;
/* loaded from: classes2.dex */
public final class Atomics {
private Atomics() {
}
public static <V> AtomicReference<V> newReference() {
return new AtomicReference<>();
}
public static <V> AtomicReference<V> newReference(V v) {
return new AtomicReference<>(v);
}
public static <E> AtomicReferenceArray<E> newReferenceArray(int i) {
return new AtomicReferenceArray<>(i);
}
public static <E> AtomicReferenceArray<E> newReferenceArray(E[] eArr) {
return new AtomicReferenceArray<>(eArr);
}
}