地图和枚举是完全不同的数据结构。地图是将值与关键。为使类型安全的枚举常数。比较是不可能的!
Maps and enums are completely different data structures. Maps are for associating a value with a key. Enums are for make typesafe constants. Comparing the two is impossible!
当枚举定义的简单类型使用常数的特殊列表时,就会需要这种类型了。
It is needed when there should be a specific list of constant values to be used for the simple type defined by the enumeration.
常数可以是整数、字符、浮点数、字符串、Boolean、octet或枚举型,但不能是any类型或用户定义的类型。
Your constants can be integer, character, floating-point, string, Boolean, octet or enumerated but not of type any or a user-defined type. Here are some examples.
枚举提供了处理相关联的常数集的方便途径。
Enumerations offer an easy way to work with sets of related constants.
使用此枚举的常数可建立检索跟踪的搜索首选项。
Use the constants of this enumeration to set up search preferences for referral chasing.
枚举提供一种使用成组的相关常数以及将常数值与名称相关联的方便途径。
Enumerations provide a convenient way to work with sets of related constants and to associate constant values with names.
枚举提供一种使用成组的相关常数以及将常数值与名称相关联的方便途径。
Enumerations provide a convenient way to work with sets of related constants, and to associate constant values with names.
枚举提供一种使用成组的相关常数以及将常数值与名称相关联的方便途径。
Enumerations provide a convenient way to work with sets of related constants, and to associate constant values with names.
应用推荐