Rabbit-R1/android (non root)/java/sources/com/google/common/util/concurrent/Atomics.java
2024-05-21 17:08:36 -04:00

27 lines
772 B
Java

package com.google.common.util.concurrent;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.atomic.AtomicReferenceArray;
@ElementTypesAreNonnullByDefault
/* loaded from: classes3.dex */
public final class Atomics {
private Atomics() {
}
public static <V> AtomicReference<V> newReference() {
return new AtomicReference<>();
}
public static <V> AtomicReference<V> newReference(@ParametricNullness 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);
}
}