public class AtomicIntegerFieldUpdater<T> extends Object
Modifier | Constructor and Description |
---|---|
protected |
AtomicIntegerFieldUpdater(Class<T> objClass,
String fieldName) |
Modifier and Type | Method and Description |
---|---|
int |
addAndGet(T obj,
int delta) |
boolean |
compareAndSet(T obj,
int expect,
int update) |
int |
decrementAndGet(T obj) |
int |
get(T obj) |
int |
getAndAdd(T obj,
int delta) |
int |
getAndDecrement(T obj) |
int |
getAndIncrement(T obj) |
int |
getAndSet(T obj,
int newValue) |
int |
incrementAndGet(T obj) |
void |
lazySet(T obj,
int newValue) |
static <O> AtomicIntegerFieldUpdater<O> |
newUpdater(Class<O> objClass,
String fieldName) |
void |
set(T obj,
int newValue) |
boolean |
weakCompareAndSet(T obj,
int expect,
int update) |
public static <O> AtomicIntegerFieldUpdater<O> newUpdater(Class<O> objClass, String fieldName)
public boolean compareAndSet(T obj, int expect, int update)
public int get(T obj)
public int getAndAdd(T obj, int delta)
public int getAndSet(T obj, int newValue)
public void lazySet(T obj, int newValue)
public void set(T obj, int newValue)
public boolean weakCompareAndSet(T obj, int expect, int update)
public int addAndGet(T obj, int delta)
public int decrementAndGet(T obj)
public int getAndDecrement(T obj)
public int getAndIncrement(T obj)
public int incrementAndGet(T obj)