File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Atomic 翻译成中文是原子的意思。在化学上,我们知道原子是
20
20
21
21
使用原子的方式更新基本类型
22
22
23
- - AtomicInteger:整形原子类
23
+ - AtomicInteger:整型原子类
24
24
- AtomicLong:长整型原子类
25
25
- AtomicBoolean :布尔型原子类
26
26
@@ -29,8 +29,8 @@ Atomic 翻译成中文是原子的意思。在化学上,我们知道原子是
29
29
使用原子的方式更新数组里的某个元素
30
30
31
31
32
- - AtomicIntegerArray:整形数组原子类
33
- - AtomicLongArray:长整形数组原子类
32
+ - AtomicIntegerArray:整型数组原子类
33
+ - AtomicLongArray:长整型数组原子类
34
34
- AtomicReferenceArray :引用类型数组原子类
35
35
36
36
** 引用类型**
@@ -41,8 +41,8 @@ Atomic 翻译成中文是原子的意思。在化学上,我们知道原子是
41
41
42
42
** 对象的属性修改类型**
43
43
44
- - AtomicIntegerFieldUpdater:原子更新整形字段的更新器
45
- - AtomicLongFieldUpdater:原子更新长整形字段的更新器
44
+ - AtomicIntegerFieldUpdater:原子更新整型字段的更新器
45
+ - AtomicLongFieldUpdater:原子更新长整型字段的更新器
46
46
- AtomicStampedReference :原子更新带有版本号的引用类型。该类将整数值与引用关联起来,可用于解决原子的更新数据和数据的版本号,可以解决使用 CAS 进行原子更新时可能出现的 ABA 问题。
47
47
48
48
下面我们来详细介绍一下这些原子类。
@@ -53,7 +53,7 @@ Atomic 翻译成中文是原子的意思。在化学上,我们知道原子是
53
53
54
54
使用原子的方式更新基本类型
55
55
56
- - AtomicInteger:整形原子类
56
+ - AtomicInteger:整型原子类
57
57
- AtomicLong:长整型原子类
58
58
- AtomicBoolean :布尔型原子类
59
59
You can’t perform that action at this time.
0 commit comments