Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some java api docs #67

Merged
merged 2 commits into from
Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
修正了一些格式
  • Loading branch information
darkSheep404 committed Feb 9, 2021
commit 48d3031645713f148c0e5efa549bac0aa6240661
50 changes: 25 additions & 25 deletions public/dicts/java-arraylist.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,151 +2,151 @@
{
"name": "add()",
"trans": [
"将元素插入到指定位置的 arraylist 中"
"add():将元素插入到指定位置的 arraylist 中"
]
},
{
"name": "addAll()",
"trans": [
"添加集合中的所有元素到 arraylist 中"
"addAll():添加集合中的所有元素到 arraylist 中"
]
},
{
"name": "clear()",
"trans": [
"删除 arraylist 中的所有元素"
"clear():删除 arraylist 中的所有元素"
]
},
{
"name": "clone()",
"trans": [
"复制一份 arraylist"
"clone():复制一份 arraylist"
]
},
{
"name": "contains()",
"trans": [
"判断元素是否在 arraylist"
"contains():判断元素是否在 arraylist"
]
},
{
"name": "get()",
"trans": [
"通过索引值获取 arraylist 中的元素"
"get():通过索引值获取 arraylist 中的元素"
]
},
{
"name": "indexOf()",
"trans": [
"返回 arraylist 中元素的索引值"
"indexOf():返回 arraylist 中元素的索引值"
]
},
{
"name": "removeAll()",
"trans": [
"删除存在于指定集合中的 arraylist 里的所有元素"
"removeAll():删除存在于指定集合中的 arraylist 里的所有元素"
]
},
{
"name": "remove()",
"trans": [
"删除 arraylist 里的单个元素"
"remove():删除 arraylist 里的单个元素"
]
},
{
"name": "size()",
"trans": [
"返回 arraylist 里元素数量"
"size():返回 arraylist 里元素数量"
]
},
{
"name": "isEmpty()",
"trans": [
"判断 arraylist 是否为空"
"isEmpty():判断 arraylist 是否为空"
]
},
{
"name": "subList()",
"trans": [
"截取部分 arraylist 的元素"
"subList():截取部分 arraylist 的元素"
]
},
{
"name": "set()",
"trans": [
"替换 arraylist 中指定索引的元素"
"set():替换 arraylist 中指定索引的元素"
]
},
{
"name": "sort()",
"trans": [
"对 arraylist 元素进行排序"
"sort():对 arraylist 元素进行排序"
]
},
{
"name": "toArray()",
"trans": [
"将 arraylist 转换为数组"
"toArray():将 arraylist 转换为数组"
]
},
{
"name": "toString()",
"trans": [
"将 arraylist 转换为字符串"
"toString():将 arraylist 转换为字符串"
]
},
{
"name": "ensureCapacity()",
"trans": [
"设置指定容量大小的 arraylist"
"ensureCapacity():设置指定容量大小的 arraylist"
]
},
{
"name": "lastIndexOf()",
"trans": [
"返回指定元素在 arraylist 中最后一次出现的位置"
"lastIndexOf():返回指定元素在 arraylist 中最后一次出现的位置"
]
},
{
"name": "retainAll()",
"trans": [
"保留 arraylist 中在指定集合中也存在的那些元素"
"retainAll():保留 arraylist 中在指定集合中也存在的那些元素"
]
},
{
"name": "containsAll()",
"trans": [
"查看 arraylist 是否包含指定集合中的所有元素"
"containsAll():查看 arraylist 是否包含指定集合中的所有元素"
]
},
{
"name": "trimToSize()",
"trans": [
"将 arraylist 中的容量调整为数组中的元素个数"
"trimToSize():将 arraylist 中的容量调整为数组中的元素个数"
]
},
{
"name": "removeRange()",
"trans": [
"删除 arraylist 中指定索引之间存在的元素"
"removeRange():删除 arraylist 中指定索引之间存在的元素"
]
},
{
"name": "replaceAll()",
"trans": [
"将给定的操作内容替换掉数组中每一个元素"
"replaceAll():将给定的操作内容替换掉数组中每一个元素"
]
},
{
"name": "removeIf()",
"trans": [
"删除所有满足特定条件的 arraylist 元素"
"removeIf():删除所有满足特定条件的 arraylist 元素"
]
},
{
"name": "forEach()",
"trans": [
"遍历 arraylist 中每一个元素并执行特定操作"
"forEach():遍历 arraylist 中每一个元素并执行特定操作"
]
}
]
44 changes: 22 additions & 22 deletions public/dicts/java-hashmap.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,133 +2,133 @@
{
"name": "clear()",
"trans": [
"删除 hashMap 中的所有键/值对"
"clear():删除 hashMap 中的所有键值对"
]
},
{
"name": "clone()",
"trans": [
"复制一份 hashMap"
"clone():复制一份 hashMap"
]
},
{
"name": "isEmpty()",
"trans": [
"判断 hashMap 是否为空"
"isEmpty():判断 hashMap 是否为空"
]
},
{
"name": "size()",
"trans": [
"计算 hashMap 中键/值对的数量"
"size():计算 hashMap 中键值对的数量"
]
},
{
"name": "put()",
"trans": [
"将键/值对添加到 hashMap 中"
"put():将键值对添加到 hashMap 中"
]
},
{
"name": "putAll()",
"trans": [
"将所有键/值对添加到 hashMap 中"
"putAll():将所有键值对添加到 hashMap 中"
]
},
{
"name": "putIfAbsent()",
"trans": [
"如果 hashMap 中不存在指定的键,则将指定的键/值对插入到 hashMap 中。"
"putIfAbsent():如果 hashMap 中不存在指定的键,则将指定的键值对插入到 hashMap 中。"
]
},
{
"name": "remove()",
"trans": [
"删除 hashMap 中指定键 key 的映射关系"
"remove():删除 hashMap 中指定键 key 的映射关系"
]
},
{
"name": "containsKey()",
"trans": [
"检查 hashMap 中是否存在指定的 key 对应的映射关系。"
"containsKey():检查 hashMap 中是否存在指定的 key 对应的映射关系。"
]
},
{
"name": "containsValue()",
"trans": [
"检查 hashMap 中是否存在指定的 value 对应的映射关系。"
"containsValue():检查 hashMap 中是否存在指定的 value 对应的映射关系。"
]
},
{
"name": "replace()",
"trans": [
"替换 hashMap 中是指定的 key 对应的 value。"
"replace():替换 hashMap 中是指定的 key 对应的 value。"
]
},
{
"name": "replaceAll()",
"trans": [
"将 hashMap 中的所有映射关系替换成给定的函数所执行的结果。"
"replaceAll():将 hashMap 中的所有映射关系替换成给定的函数所执行的结果。"
]
},
{
"name": "get()",
"trans": [
"获取指定 key 对应对 value"
"get():获取指定 key 对应对 value"
]
},
{
"name": "getOrDefault()",
"trans": [
"获取指定 key 对应对 value,如果找不到 key ,则返回设置的默认值"
"getOrDefault():获取指定 key 对应对 value,如果找不到 key ,则返回设置的默认值"
]
},
{
"name": "forEach()",
"trans": [
"对 hashMap 中的每个映射执行指定的操作。"
"forEach():对 hashMap 中的每个映射执行指定的操作。"
]
},
{
"name": "entrySet()",
"trans": [
"返回 hashMap 中所有映射项的集合集合视图。"
"entrySet():返回 hashMap 中所有映射项的集合集合视图。"
]
},
{
"name": "keySet()",
"trans": [
"返回 hashMap 中所有 key 组成的集合视图。"
"keySet():返回 hashMap 中所有 key 组成的集合视图。"
]
},
{
"name": "values()",
"trans": [
"返回 hashMap 中存在的所有 value 值。"
"values():返回 hashMap 中存在的所有 value 值。"
]
},
{
"name": "merge()",
"trans": [
"添加键值对到 hashMap 中"
"merge():添加键值对到 hashMap 中"
]
},
{
"name": "compute()",
"trans": [
"对 hashMap 中指定 key 的值进行重新计算"
"compute():对 hashMap 中指定 key 的值进行重新计算"
]
},
{
"name": "computeIfAbsent()",
"trans": [
"对 hashMap 中指定 key 的值进行重新计算,如果不存在这个 key,则添加到 hasMap 中"
"computeIfAbsent():对 hashMap 中指定 key 的值进行重新计算,如果不存在这个 key,则添加到 hasMap 中"
]
},
{
"name": "computeIfPresent()",
"trans": [
"对 hashMap 中指定 key 的值进行重新计算,前提是该 key 存在于 hashMap 中。"
"computeIfPresent():对 hashMap 中指定 key 的值进行重新计算,前提是该 key 存在于 hashMap 中。"
]
}
]
Loading