enumerated type中文,enumerated type的意思,enumerated type翻译及用法

2025-10-31 12:04 浏览次数 9

enumerated type

枚举类型;列举型

enumerated type 例句

英汉例句

  • how can i assign an enumerated type value to a variable?

    我怎么可以指定枚举类型的值给一个变量?

  • listing 1 creates an enumerated type and uses the type-safe usage as an argument to a helper method.

    清单1将创建一个枚举类型,并将类型安全的枚举值作为帮助器方法(helpermethod)的参数。

  • solution 3: create a pattern, and combine it with the original enumerated type

    解决方案3:创建一个模式,并与原始枚举类型结合

  • the main() method following the enumerated type definition demonstrates the usage.

    位于枚举类型定义之后的main()方法演示了这种用法。

  • an enumerated type is one that has valid values limited to a set of constants. for instance, an enumeration may be defined for the colors of a stop light as follows

    枚举类型是一种有效取值仅限于一组常量的类型。

  • for instance, in the previous examples, the size enumerated type had a pricing factor argument and getpricingfactor() method.

    例如,在前面的例子中,size枚举类型有一个定价因子参数和getpricingfactor()方法。

  • we can see that our breed enumerated type contains several variables of type value, as in the following example.

    你可以看到我们的breed枚举类型包含了几种value类型的值,像下面的例子所展示的。

  • finally, an enumerated type may, in a schema, be part of a union with a primitive type.

    最后,模式(schema)中的枚举类型可能是原始类型的联合(union)的一个组成部分。

  • this concept is getting more into the area of treating each element of an enumerated type as a subclass.

    这个概念正在深入到将枚举类型的每个元素作为一个子类对待的领域。

  • also, an enumerated type is supplied via its class object, along with the type of the map's values (in this case, simple strings). the output of this method is shown in listing 11

    而且,枚举值是通过其class对象提供的,同时提供的还有映射值的类型(在该例中,它只是一个简单的字符串)。

  • the only other thing to watch out for is that an enumerated type is defined using a class and not an interface like other model classes.

    惟一需要当心的是枚举类型。 它被定义成一个class,而不是其他模型类中的interface!

  • the values() method of the enumerated type returns an ordered array of the different values of that type.

    该枚举类型的values()方法返回这种类型的不同值的有序数组。

相关热词