AtomicInteger
Class AtomicInteger
- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.AtomicInteger
- All Implemented Interfaces:
- Serializable
public class AtomicInteger extends Number implements Serializable
An int
value that may be updated atomically. See the java.util.concurrent.atomic
package specification for description of the properties of atomic variables. An AtomicInteger
is used in applications such as atomically incremented counters, and cannot be used as a replacement for an 登录查看完整内容