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 protected
AtomicUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
and(AtomicBoolean atomicBoolean, boolean value)
static void
and(AtomicReference<Boolean> atomicBoolean, boolean value)
static void
or(AtomicBoolean atomicBoolean, boolean value)
static void
or(AtomicReference<Boolean> atomicBoolean, boolean value)
static <T> void
setIfNotNull(@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.
-
-