开发中的英语积累 P13:Segment、Inclusive、Exclusive、Movement、Arbitrarily、Generic
英文词性
| 词性 | 说明 | 举例 |
|---|---|---|
n. | 名词 | student:学生 |
pron. | 代词 | you:你 |
adj. | 形容词 | happy:高兴的 |
adv. | 副词 | quickly:迅速地 |
v. | 动词 | run:跑 |
num. | 数词 | three:三 |
art. | 冠词 | the:这个 |
prep. | 介词 | at:在... |
conj. | 连词 | and:和 |
interj. | 感叹词 | wow:哇 |
一、Segment
public abstract String getLastPathSegment();
-
词性:
n./v. -
含义:段,片段;分割
# 内存段memory 【segment】
# 代码段code 【segment】
# 操作系统使用内存段来隔离不同进程的数据The operating system uses memory 【segments】 to isolate data from different processes.
# 我们需要将大文件分割成较小的段以便于传输
We need to 【segment】 large files into smaller pieces for easier transmission.
二、Inclusive
int SPAN_INCLUSIVE_EXCLUSIVE = 17;
-
词性:
adj. -
含义:包含的,包括的
# 包含边界【inclusive】 boundary
# 全包含all-【inclusive】
# 在 Python 中,range(1, 5) 包含起始值 1 但不包含结束值 5In Python, range(1, 5) includes the start value 1 but excludes the end value 5.
# 这个价格是全包含的,涵盖了所有服务和税费This price is all-【inclusive】, covering all services and taxes.
三、Exclusive
int SPAN_INCLUSIVE_EXCLUSIVE = 17;
-
词性:
adj. -
含义:排他的,独占的
# 互斥锁【exclusive】 lock
# 独占访问【exclusive】 access
# 这个功能是平台独占的,其他系统无法使用This feature is platform-【exclusive】 and unavailable on other systems.
# 线程需要获取互斥锁才能访问共享资源Threads need to acquire an 【exclusive】 lock to access shared resources.
四、Movement
public interface MovementMethod {...
}
-
词性:
n. -
含义:移动,运动
# 文件移动
file 【movement】
# 鼠标移动
mouse 【movement】
# 文件管理系统跟踪所有文件的移动和修改历史
The file management system tracks all file 【movements】 and modification history.
# 游戏引擎需要精确处理玩家的移动和碰撞检测
The game engine needs to accurately handle player 【movement】 and collision detection.
五、Arbitrarily
public boolean canSelectArbitrarily();
-
词性:
adv. -
含义:任意地,随机地
# 任意选择【arbitrarily】 choose
# 任意大小【arbitrarily】 sized
# 测试数据生成器可以任意创建各种边界条件的测试用例The test data generator can 【arbitrarily】 create test cases with various boundary condition
# 这个数据结构支持存储任意大小的数据块This data structure supports storing 【arbitrarily】 sized data chunks.
六、Generic
public boolean onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event);
-
词性:
adj. -
含义:通用的,泛型的
# 泛型编程【generic】 programming
# 通用组件【generic】 component
# Java 的泛型允许我们编写类型安全的集合类Java's 【generics】 allow us to write type-safe collection classes.
# 我们开发了一个通用的错误处理组件,可以在多个项目中复用We developed a 【generic】 error handling component that can be reused across multiple projects.
