| Package | org.pranaframework.domain |
| Class | public class Enum |
| Inheritance | Enum Entity ValueObject |
| Implements | IEnum |
| Method | Defined by | ||
|---|---|---|---|
|
Enum(id:*, value:*)
Creates a new Enum object.
| Enum | ||
|
clone():*
Returns the same enum instead of cloning it.
| Enum | ||
![]() |
copyFrom(other:*):void
| ValueObject | |
![]() |
equals(other:*):Boolean
| ValueObject | |
![]() |
equalsWithoutIdentity(other:IEntity):Boolean
| Entity | |
|
[static]
Looks up an enum entry for the given class by its id.
| Enum | ||
| value | property |
value:* [read-write]Implementation
public function get value():*
public function set value(value:*):void
| Enum | () | constructor |
public function Enum(id:*, value:*)Creates a new Enum object.
Parametersid:* — the id of the enum object
|
|
value:* — the value of the enum object
|
| clone | () | method |
public override function clone():*Returns the same enum instead of cloning it.
Returns* |
| fromID | () | method |
public static function fromID(id:*, clazz:Class):IEnumLooks up an enum entry for the given class by its id.
Parametersid:* — the id of the enum entry to get
|
|
clazz:Class — the class that defines the enumeration
|
IEnum |