public class Atomic extends Object
| Constructor and Description |
|---|
Atomic() |
| Modifier and Type | Method and Description |
|---|---|
static AtomicBoolean |
atomic(boolean b) |
static AtomicInteger |
atomic(int i) |
static AtomicLong |
atomic(long i) |
static <T> AtomicReference<T> |
atomic(T o) |
static boolean |
swap(AtomicBoolean ref,
BooleanOperator f) |
static int |
swap(AtomicInteger ref,
IntUnaryOperator f) |
static long |
swap(AtomicLong ref,
LongUnaryOperator f) |
static <T> T |
swap(AtomicReference<T> ref,
UnaryOperator<T> f) |
static boolean |
value(AtomicBoolean a) |
static int |
value(AtomicInteger a) |
static long |
value(AtomicLong a) |
static <T> T |
value(AtomicReference<T> a) |
public static AtomicBoolean atomic(boolean b)
public static AtomicInteger atomic(int i)
public static AtomicLong atomic(long i)
public static <T> AtomicReference<T> atomic(T o)
public static <T> T swap(AtomicReference<T> ref, UnaryOperator<T> f)
public static int swap(AtomicInteger ref, IntUnaryOperator f)
public static long swap(AtomicLong ref, LongUnaryOperator f)
public static boolean swap(AtomicBoolean ref, BooleanOperator f)
public static int value(AtomicInteger a)
public static long value(AtomicLong a)
public static boolean value(AtomicBoolean a)
public static <T> T value(AtomicReference<T> a)
Copyright © 2017. All rights reserved.