enums

enums

 英

  • 網絡枚舉;枚舉類型;傳遞枚舉類型

例句

Creating EAz using Enums and EnumSets in lieu of custom bit vectors turned out to be quite straightforward.

事實證明使用EnumEnumSet代替定義向量創建EAz非常簡單

Some other features that are not making it to this release are support for stored procedures, type-conversions, enums and bulk updates.

這次發布其他一些特性沒有達到預定目標存儲過程類型轉換枚舉數據更新支持

The Java language lacks a native Range type, but it does offer a similar concept in the form of enums.

Java語言缺乏Range類型但是提供一個類似概念采取enum形式

Apart from the Java 5 features that brought annotations, generics and enums into Groovy, a new operator finds its way into the language: ?

Java5特性除了Groovy注解枚舉增加一個操作符——?

If you need a quick tutorial on enums, generics, anonymous classes, and other useful features, you'll want to read this chapter.

如果需要關于枚舉屬性隱藏種類其他一些特點快速指南可以閱讀

Icons identify hierarchical structures employed within your projects, such as namespaces, types, interfaces, enums, and classes.

圖示識別專案采用階層式結構例如命名空間介面列舉類別

All the classes, struct, enums (and so on) under this stereotyped UML package will be generated within this namespace in the generated code.

這個stereotypedUML有的結構枚舉以及其它生成代碼之后包括這個名字空間

Discusses changes in the declaration and behavior of enums.

討論枚舉聲明行為更改

Let's see how annotations, enums and generics can be used from Groovy.

我們看看Groovy如何使用注解枚舉泛型

For enums, the default value is the first value listed in the enum's type definition.

枚舉來說默認枚舉類型定義第一個

For more information on enums, see enum class.

有關枚舉更多信息請參見枚舉

But of course, static imports aren't only available for enums, but also work for other classes and static fields.

當然靜態導入不僅僅枚舉有效其他靜態成員變量同樣有效

You can use the default statement with enums and switches, just as you would expect. Listing 7 illustrates this usage

正如期待使用枚舉switch可以使用default語句

Since both enums are static, their members can be referred to directly from anywhere in an application, for example as

由于enum靜態因此成員可以應用程序任何位置直接引用例如