计算机的用途不胜枚举。
如果不是,我们就不能把钱存入银行;不能从别人那里购买食物、衣服或药品;不能开车过桥,不能坐飞机——这样的事情不胜枚举。
If not, we couldn't put money in the bank, buy food, clothing, or medicine from others, drive across a bridge, get on a plane—the list is endless.
应该对枚举类型使用这些方面吗?
第二个方法返回全部差事的枚举。
允许在设计阶段之后扩展枚举列表。
清单2显示最新创建的枚举列表。
建议明确地枚举这些逻辑标识。
It is recommended, though, to enumerate the logical identifiers explicitly.
枚举集中的实体采用以下形式指定。
category属性是枚举类型。
The category attribute is an enumerated type. It's one of the following.
然而,扩展枚举有几个优势。
最后我们学习了如何封装枚举中的值。
Finally, we learned how to encapsulate values in enumerations.
枚举值应使用由英语单词组成的名称。
Enumeration values should use names consisting of English words.
XML文档经常包含某些元素的枚举。
Frequently, XML documents contain enumerations of certain elements.
缺点:解析器不验证枚举值。
Disadvantage: Enumerated values are not validated by the parser.
绑定类型的字段枚举完整性。
有些人认为根本就不应该扩展枚举列表。
Some folks say that you should not extend enumerated lists at all.
这就是枚举类型的简单性。
要定义的枚举和枚举文字。
扩展枚举列表的必要条件。
用解析器验证枚举列表。
编号的枚举会引起不互操作的非标准扩展。
Numbered enumerations invite nonstandard extensions that do not interoperate.
必须在元素中而不是在属性中设置枚举值。
创建可扩展的枚举列表。
清单12显示枚举值。
枚举——数据库中速度与可读性的较量。
BookType枚举,上文已经讨论过了。
切入点可以通过显式枚举方式描述连接点集合。
Pointcuts can describe sets of join points by means of explicit enumeration.
枚举类型使我们能够从多项选项中选择一个值。
The enumerated types enable us to select one value from multiple options.
简单类型包括字符串、浮点数、整数、枚举等。
Simple types include string, float, integer, enumeration, etc.
请考虑为常用标志组合创建一个枚举常量。
Consider providing named constants for commonly used combinations of flags.
应用推荐