-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from SFAfreshman/dev-tips
- Loading branch information
Showing
6 changed files
with
900 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 中每一个元素并执行特定操作" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[ | ||
{ | ||
"name": "isLetter()", | ||
"trans": [ | ||
"isLetter():是否是一个字母" | ||
] | ||
}, | ||
{ | ||
"name": "isDigit()", | ||
"trans": [ | ||
"isDigit():是否是一个数字字符" | ||
] | ||
}, | ||
{ | ||
"name": "isWhitespace()", | ||
"trans": [ | ||
"isWhitespace():是否是一个空白字符" | ||
] | ||
}, | ||
{ | ||
"name": "isUpperCase()", | ||
"trans": [ | ||
"isUpperCase():是否是大写字母" | ||
] | ||
}, | ||
{ | ||
"name": "isLowerCase()", | ||
"trans": [ | ||
"isLowerCase():是否是小写字母" | ||
] | ||
}, | ||
{ | ||
"name": "toUpperCase()", | ||
"trans": [ | ||
"toUpperCase():指定字母的大写形式" | ||
] | ||
}, | ||
{ | ||
"name": "toLowerCase()", | ||
"trans": [ | ||
"toLowerCase():指定字母的小写形式" | ||
] | ||
}, | ||
{ | ||
"name": "toString()", | ||
"trans": [ | ||
"toString():返回字符的字符串形式,字符串的长度仅为1" | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
[ | ||
{ | ||
"name": "clear()", | ||
"trans": [ | ||
"clear():删除 hashMap 中的所有键值对" | ||
] | ||
}, | ||
{ | ||
"name": "clone()", | ||
"trans": [ | ||
"clone():复制一份 hashMap" | ||
] | ||
}, | ||
{ | ||
"name": "isEmpty()", | ||
"trans": [ | ||
"isEmpty():判断 hashMap 是否为空" | ||
] | ||
}, | ||
{ | ||
"name": "size()", | ||
"trans": [ | ||
"size():计算 hashMap 中键值对的数量" | ||
] | ||
}, | ||
{ | ||
"name": "put()", | ||
"trans": [ | ||
"put():将键值对添加到 hashMap 中" | ||
] | ||
}, | ||
{ | ||
"name": "putAll()", | ||
"trans": [ | ||
"putAll():将所有键值对添加到 hashMap 中" | ||
] | ||
}, | ||
{ | ||
"name": "putIfAbsent()", | ||
"trans": [ | ||
"putIfAbsent():如果 hashMap 中不存在指定的键,则将指定的键值对插入到 hashMap 中。" | ||
] | ||
}, | ||
{ | ||
"name": "remove()", | ||
"trans": [ | ||
"remove():删除 hashMap 中指定键 key 的映射关系" | ||
] | ||
}, | ||
{ | ||
"name": "containsKey()", | ||
"trans": [ | ||
"containsKey():检查 hashMap 中是否存在指定的 key 对应的映射关系。" | ||
] | ||
}, | ||
{ | ||
"name": "containsValue()", | ||
"trans": [ | ||
"containsValue():检查 hashMap 中是否存在指定的 value 对应的映射关系。" | ||
] | ||
}, | ||
{ | ||
"name": "replace()", | ||
"trans": [ | ||
"replace():替换 hashMap 中是指定的 key 对应的 value。" | ||
] | ||
}, | ||
{ | ||
"name": "replaceAll()", | ||
"trans": [ | ||
"replaceAll():将 hashMap 中的所有映射关系替换成给定的函数所执行的结果。" | ||
] | ||
}, | ||
{ | ||
"name": "get()", | ||
"trans": [ | ||
"get():获取指定 key 对应对 value" | ||
] | ||
}, | ||
{ | ||
"name": "getOrDefault()", | ||
"trans": [ | ||
"getOrDefault():获取指定 key 对应对 value,如果找不到 key ,则返回设置的默认值" | ||
] | ||
}, | ||
{ | ||
"name": "forEach()", | ||
"trans": [ | ||
"forEach():对 hashMap 中的每个映射执行指定的操作。" | ||
] | ||
}, | ||
{ | ||
"name": "entrySet()", | ||
"trans": [ | ||
"entrySet():返回 hashMap 中所有映射项的集合集合视图。" | ||
] | ||
}, | ||
{ | ||
"name": "keySet()", | ||
"trans": [ | ||
"keySet():返回 hashMap 中所有 key 组成的集合视图。" | ||
] | ||
}, | ||
{ | ||
"name": "values()", | ||
"trans": [ | ||
"values():返回 hashMap 中存在的所有 value 值。" | ||
] | ||
}, | ||
{ | ||
"name": "merge()", | ||
"trans": [ | ||
"merge():添加键值对到 hashMap 中" | ||
] | ||
}, | ||
{ | ||
"name": "compute()", | ||
"trans": [ | ||
"compute():对 hashMap 中指定 key 的值进行重新计算" | ||
] | ||
}, | ||
{ | ||
"name": "computeIfAbsent()", | ||
"trans": [ | ||
"computeIfAbsent():对 hashMap 中指定 key 的值进行重新计算,如果不存在这个 key,则添加到 hasMap 中" | ||
] | ||
}, | ||
{ | ||
"name": "computeIfPresent()", | ||
"trans": [ | ||
"computeIfPresent():对 hashMap 中指定 key 的值进行重新计算,前提是该 key 存在于 hashMap 中。" | ||
] | ||
} | ||
] |
Oops, something went wrong.