-
Notifications
You must be signed in to change notification settings - Fork 0
/
java-arraylist.json
152 lines (152 loc) · 3.42 KB
/
java-arraylist.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[
{
"name": "add()",
"trans": [
"add():将元素插入到指定位置的 arraylist 中"
]
},
{
"name": "addAll()",
"trans": [
"addAll():添加集合中的所有元素到 arraylist 中"
]
},
{
"name": "clear()",
"trans": [
"clear():删除 arraylist 中的所有元素"
]
},
{
"name": "clone()",
"trans": [
"clone():复制一份 arraylist"
]
},
{
"name": "contains()",
"trans": [
"contains():判断元素是否在 arraylist"
]
},
{
"name": "get()",
"trans": [
"get():通过索引值获取 arraylist 中的元素"
]
},
{
"name": "indexOf()",
"trans": [
"indexOf():返回 arraylist 中元素的索引值"
]
},
{
"name": "removeAll()",
"trans": [
"removeAll():删除存在于指定集合中的 arraylist 里的所有元素"
]
},
{
"name": "remove()",
"trans": [
"remove():删除 arraylist 里的单个元素"
]
},
{
"name": "size()",
"trans": [
"size():返回 arraylist 里元素数量"
]
},
{
"name": "isEmpty()",
"trans": [
"isEmpty():判断 arraylist 是否为空"
]
},
{
"name": "subList()",
"trans": [
"subList():截取部分 arraylist 的元素"
]
},
{
"name": "set()",
"trans": [
"set():替换 arraylist 中指定索引的元素"
]
},
{
"name": "sort()",
"trans": [
"sort():对 arraylist 元素进行排序"
]
},
{
"name": "toArray()",
"trans": [
"toArray():将 arraylist 转换为数组"
]
},
{
"name": "toString()",
"trans": [
"toString():将 arraylist 转换为字符串"
]
},
{
"name": "ensureCapacity()",
"trans": [
"ensureCapacity():设置指定容量大小的 arraylist"
]
},
{
"name": "lastIndexOf()",
"trans": [
"lastIndexOf():返回指定元素在 arraylist 中最后一次出现的位置"
]
},
{
"name": "retainAll()",
"trans": [
"retainAll():保留 arraylist 中在指定集合中也存在的那些元素"
]
},
{
"name": "containsAll()",
"trans": [
"containsAll():查看 arraylist 是否包含指定集合中的所有元素"
]
},
{
"name": "trimToSize()",
"trans": [
"trimToSize():将 arraylist 中的容量调整为数组中的元素个数"
]
},
{
"name": "removeRange()",
"trans": [
"removeRange():删除 arraylist 中指定索引之间存在的元素"
]
},
{
"name": "replaceAll()",
"trans": [
"replaceAll():将给定的操作内容替换掉数组中每一个元素"
]
},
{
"name": "removeIf()",
"trans": [
"removeIf():删除所有满足特定条件的 arraylist 元素"
]
},
{
"name": "forEach()",
"trans": [
"forEach():遍历 arraylist 中每一个元素并执行特定操作"
]
}
]