| Package | system |
| Class | public class Enum |
| Inheritance | Enum Object |
| Implements | Serializable |
| Subclasses | AccessorType, FilterType, HostID, HostnameType, LoggerLevel, MemberType, PlatformID, SwitchStatus |
| Method | Defined By | ||
|---|---|---|---|
Enum(value:int = 0, name:String)
Creates a new Enum instance. | Enum | ||
toSource(indent:int = 0):String
Returns the source code String representation of the object. | Enum | ||
toString():String
Returns the String representation of the object. | Enum | ||
valueOf():int
Returns the primitive value of the object. | Enum | ||
| Enum | () | Constructor |
public function Enum(value:int = 0, name:String)Creates a new Enum instance.
Parametersvalue:int (default = 0) — The value of the enumeration.
| |
name:String — The name key of the enumeration.
|
| toSource | () | method |
public function toSource(indent:int = 0):StringReturns the source code String representation of the object.
Parameters
indent:int (default = 0) |
String — the source code String representation of the object.
|
| toString | () | method |
public function toString():StringReturns the String representation of the object.
ReturnsString — the String representation of the object.
|
| valueOf | () | method |
public function valueOf():intReturns the primitive value of the object.
Returnsint — the primitive value of the object.
|