public class AtomicPositiveInteger extends Number
| Constructor and Description |
|---|
AtomicPositiveInteger() |
AtomicPositiveInteger(int initialValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
addAndGet(int delta) |
byte |
byteValue() |
boolean |
compareAndSet(int expect,
int update) |
int |
decrementAndGet() |
double |
doubleValue() |
boolean |
equals(Object obj) |
float |
floatValue() |
int |
get() |
int |
getAndAdd(int delta) |
int |
getAndDecrement() |
int |
getAndIncrement() |
int |
getAndSet(int newValue) |
int |
hashCode() |
int |
incrementAndGet() |
int |
intValue() |
long |
longValue() |
void |
set(int newValue) |
short |
shortValue() |
String |
toString() |
boolean |
weakCompareAndSet(int expect,
int update) |
public AtomicPositiveInteger()
public AtomicPositiveInteger(int initialValue)
public final int getAndIncrement()
public final int getAndDecrement()
public final int incrementAndGet()
public final int decrementAndGet()
public final int get()
public final void set(int newValue)
public final int getAndSet(int newValue)
public final int getAndAdd(int delta)
public final int addAndGet(int delta)
public final boolean compareAndSet(int expect,
int update)
public final boolean weakCompareAndSet(int expect,
int update)
public short shortValue()
shortValue in class Numberpublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class NumberCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.