Class Atomics
java.lang.Object
com.google.common.util.concurrent.Atomics
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
Static utility methods pertaining to classes in the
java.util.concurrent.atomic package.- Since:
- 10.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <V> AtomicReference<V> Deprecated.Creates anAtomicReferenceinstance with no initial value.static <V> AtomicReference<V> newReference(V initialValue) Deprecated.Creates anAtomicReferenceinstance with the given initial value.static <E> AtomicReferenceArray<E> newReferenceArray(int length) Deprecated.Creates anAtomicReferenceArrayinstance of given length.static <E> AtomicReferenceArray<E> newReferenceArray(E[] array) Deprecated.Creates anAtomicReferenceArrayinstance with the same length as, and all elements copied from, the given array.
-
Method Details
-
newReference
Deprecated.Creates anAtomicReferenceinstance with no initial value.- Returns:
- a new
AtomicReferencewith no initial value
-
newReference
Deprecated.Creates anAtomicReferenceinstance with the given initial value.- Parameters:
initialValue- the initial value- Returns:
- a new
AtomicReferencewith the given initial value
-
newReferenceArray
Deprecated.Creates anAtomicReferenceArrayinstance of given length.- Parameters:
length- the length of the array- Returns:
- a new
AtomicReferenceArraywith the given length
-
newReferenceArray
Deprecated.Creates anAtomicReferenceArrayinstance with the same length as, and all elements copied from, the given array.- Parameters:
array- the array to copy elements from- Returns:
- a new
AtomicReferenceArraycopied from the given array
-