public class AtomicUtils extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AtomicUtils() |
| Modifier and Type | Method and 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(AtomicReference<T> ref,
T value)
Sets a value if the supplied value is not null.
|
public static void or(AtomicBoolean atomicBoolean, boolean value)
public static void and(AtomicBoolean atomicBoolean, boolean value)
public static void or(AtomicReference<Boolean> atomicBoolean, boolean value)
public static void and(AtomicReference<Boolean> atomicBoolean, boolean value)
public static <T> void setIfNotNull(@NotNull
AtomicReference<T> ref,
@Nullable
T value)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.