mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 11:57:18 +01:00
29 lines
906 B
Java
29 lines
906 B
Java
package com.google.common.util.concurrent;
|
|
|
|
import com.google.common.annotations.GwtIncompatible;
|
|
import java.util.concurrent.atomic.AtomicReference;
|
|
import java.util.concurrent.atomic.AtomicReferenceArray;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@GwtIncompatible
|
|
/* loaded from: classes8.dex */
|
|
public final class Atomics {
|
|
private Atomics() {
|
|
}
|
|
|
|
public static <V> AtomicReference<V> newReference() {
|
|
return new AtomicReference<>();
|
|
}
|
|
|
|
public static <E> AtomicReferenceArray<E> newReferenceArray(int i) {
|
|
return new AtomicReferenceArray<>(i);
|
|
}
|
|
|
|
public static <V> AtomicReference<V> newReference(@ParametricNullness V v) {
|
|
return new AtomicReference<>(v);
|
|
}
|
|
|
|
public static <E> AtomicReferenceArray<E> newReferenceArray(E[] eArr) {
|
|
return new AtomicReferenceArray<>(eArr);
|
|
}
|
|
}
|