Class AtomicInteger
java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicInteger
- All Implemented Interfaces:
Serializable
CLDC11 subset stub. Compile-time visible only; the actual runtime
implementation comes from the platform (the Android JDK on Android,
vm/JavaAPI on ParparVM, the host JDK in the JavaSE simulator).- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intaddAndGet(int delta) final booleancompareAndSet(int expect, int update) final intdoublefloatfinal intget()final intgetAndAdd(int delta) final intfinal intfinal intgetAndSet(int newValue) final intintintValue()final voidlazySet(int newValue) longfinal voidset(int newValue) final booleanweakCompareAndSet(int expect, int update) Methods inherited from class Number
byteValue, shortValue
-
Constructor Details
-
AtomicInteger
public AtomicInteger(int initialValue) -
AtomicInteger
public AtomicInteger()
-
-
Method Details
-
get
public final int get() -
set
public final void set(int newValue) -
lazySet
public final void lazySet(int newValue) -
getAndSet
public final int getAndSet(int newValue) -
compareAndSet
public final boolean compareAndSet(int expect, int update) -
weakCompareAndSet
public final boolean weakCompareAndSet(int expect, int update) -
getAndIncrement
public final int getAndIncrement() -
getAndDecrement
public final int getAndDecrement() -
getAndAdd
public final int getAndAdd(int delta) -
incrementAndGet
public final int incrementAndGet() -
decrementAndGet
public final int decrementAndGet() -
addAndGet
public final int addAndGet(int delta) -
intValue
-
longValue
-
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-