开发中的英语积累-P1UtilityCompatRestrictedGrantDenyRemote
目录
开发中的英语积累 P1:Utility、Compat、Restricted、Grant、Deny、Remote
英文词性
| 词性 | 说明 | 举例 |
|---|---|---|
n. | 名词 | student:学生 |
pron. | 代词 | you:你 |
adj. | 形容词 | happy:高兴的 |
adv. | 副词 | quickly:迅速地 |
v. | 动词 | run:跑 |
num. | 数词 | three:三 |
art. | 冠词 | the:这个 |
prep. | 介词 | at:在... |
conj. | 连词 | and:和 |
interj. | 感叹词 | wow:哇 |
一、Utility
@SuppressLint("PrivateConstructorForUtilityClass")- 词性:
n. - 含义:实用程序,工具,效用
# 系统工具
system 【utility】# 系统工具
command-line 【utility】# 这个命令行工具可以帮助你快速清理系统缓存
This command-line 【utility】 can help you quickly clear system cache.# 我们开发了一个新的工具类来提供常见的辅助功能
We developed a new 【utility】 class to provide common helper functions.二、Compat
public class ViewCompat {
...
}- 词性:
n. - 含义:兼容性
# 兼容性模式
【compat】 mode# 向后兼容性
backward 【compat】# 这个软件版本提供了更好的向后兼容性
This software version offers better backward 【compat】.# 开发者需要确保新功能不会破坏现有的兼容性
Developers need to ensure new features don't break existing 【compat】.三、Restricted
@SuppressLint("RestrictedApi")- 词性:
adj. - 含义:受限制的
# 受限访问
【restricted】 access# 受限区域
【restricted】 area# 这个 API 调用需要受限权限才能访问
This API call requires 【restricted】 permissions to access.# 由于安全原因,对该文件的访问受到了限制
Access to the file has been 【restricted】 for security reasons.四、Grant
public static final int PERMISSION_GRANTED = 0;- 词性:
v. - 含义:授予,同意
# 授予权限
【grant】 permissions# 授予访问权
【grant】 access# 系统管理员需要授予用户相应的权限
The system administrator needs to 【grant】 appropriate permissions to users.# 数据库管理员授予了该账户只读权限
The database administrator 【granted】 read-only access to this account.五、Deny
public static final int PERMISSION_DENIED = -1;- 词性:
v. - 含义:拒绝,否认
# 拒绝访问
【deny】 access# 拒绝请求
【deny】 request# 防火墙拒绝了来自未知 IP 的访问请求
The firewall 【denied】 access requests from unknown IP addresses.# 如果权限不足,系统会自动拒绝操作请求
If permissions are insufficient, the system will automatically 【deny】 the operation request.六、Remote
public class RemoteException extends AndroidException {
...
}- 词性:
adj. - 含义:远程的,遥远的
# 远程连接
【remote】 connection# 远程服务器
【remote】 server# 开发者通过 SSH 建立远程连接到生产服务器
Developers establish 【remote】 connections to production servers via SSH.# 团队使用 Git 进行远程代码仓库的协作
The team uses Git for collaboration with 【remote】 code repositories.