Class AtomicUtils
- java.lang.Object
-
- com.atlassian.bamboo.utils.concurrent.AtomicUtils
-
- Direct Known Subclasses:
AtomicUtils
public class AtomicUtils extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAtomicUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidand(AtomicBoolean atomicBoolean, boolean value)static voidand(AtomicReference<Boolean> atomicBoolean, boolean value)static voidor(AtomicBoolean atomicBoolean, boolean value)static voidor(AtomicReference<Boolean> atomicBoolean, boolean value)static <T> voidsetIfNotNull(@NotNull AtomicReference<T> ref, T value)Sets a value if the supplied value is not null.
-
-
-
Method Detail
-
or
public static void or(AtomicBoolean atomicBoolean, boolean value)
-
and
public static void and(AtomicBoolean atomicBoolean, boolean value)
-
or
public static void or(AtomicReference<Boolean> atomicBoolean, boolean value)
-
and
public static void and(AtomicReference<Boolean> atomicBoolean, boolean value)
-
setIfNotNull
public static <T> void setIfNotNull(@NotNull @NotNull AtomicReference<T> ref, @Nullable T value)Sets a value if the supplied value is not null.
-
-