27 lines
719 B
Java
27 lines
719 B
Java
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);
|
|
}
|
|
}
|