###### ★★创造未来★★

Only Creation Can Develop The World!

###### 21.4 Enum values and operations
Each enum type defines a distinct type; an explicit enumeration conversion (
§13.2.2) is required to convert
between an enum type and an integral type, or between two enum types. The
set of values that an enum type
can take on is not limited by its enum members. In particular, any value of
the underlying type of an enum
can be cast to the enum type, and is a distinct valid value of that enum
type.
Enum members have the type of their containing enum type (except within
other enum member initializers:
see §21.3). The value of an enum member declared in enum type E with
associated value v is (E)v.
The following operators can be used on values of enum types: ==, !=, <, >,
<=, >= (§14.9.5), + (§14.7.4),
- (§14.7.5), ^, &, | (§14.10.2), ~ (§14.6.4), ++, -- (§14.5.9 and §14.6.
5), and sizeof (§25.5.4).
Every enum type automatically derives from the class System.Enum (which, in
turn, derives from
System.ValueType and object). Thus, inherited methods and properties of
this class can be used on
values of an enum type.

#### 枚举类enum的values()方法

2017-06-02 16:45:18

#### java枚举enum类中的values()

2017-03-26 15:51:32

#### Java中Enum类下的values()方法的由来

2014-02-27 20:35:45

#### Enum中values()方法取值顺序

2016-09-22 16:57:24

#### 枚举（Enum)中的values（）方法揭秘

2013-01-09 22:39:22

#### 关于Enum枚举类没有values()方法却可以在枚举类中使用的问题

2014-06-24 10:03:20

#### Java中的枚举与values()方法

2015-09-24 11:10:47

#### 关于如何使用枚举类的values方法！

2015-09-25 13:43:13

#### enum data type

2005-08-18 08:17:00

#### swift_031（Swift 中的枚举/原始值(RawValues)）

2017-07-27 16:04:50

## 不良信息举报

21.4 Enum values and operations