Reference
Constructor
constructor
constructor(classOf, value = null): Reference<classOf>
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
classOf | string | Yes | null | Referencing the type of AbstractEntity included in the Reference |
value | number | AbstractEntity > | No | [] |
Properties
classOf
Type | Description |
---|---|
string | Referencing the type of AbstractEntity included in the Reference |
value
Type | Description |
---|---|
int | symbol | null |
Read-Only
Methods
is
Indicates whether this reference the specified value or not.
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
value | Reference | AbstractEntity | int | symbol | null | Yes | - | The value to compare, if your providing Reference or AbstractEntity make sure it's match with the classOf property |
Returns:
Type: boolean
set
Set the reference value
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
value | Reference | AbstractEntity | int | symbol | null | Yes | - | The value to reference, if your providing Reference or AbstractEntity make sure it's match with the classOf property |
Returns:
Type: this