new InstructionState(name)
Constructor.
Extends:
Parameters:
Name | Type | Description |
---|---|---|
name |
string | the name |
Extends
Members
-
name
-
Get the enum name.
- Inherited From:
Methods
-
<static> enumValues()
-
Get the
module:domain~InstructionStates
values. -
equals(value)
-
Test if a string is equal to this enum's name.
As long as enum values are consistently obtained from the
module:util~Enum.enumValues
array then enum instances can be compared with===
. If unsure, this method can be used to compare string values instead.Parameters:
Name Type Description value
string the value to test
- Inherited From:
Returns:
true
ifvalue
is the same as this instance'sname
value- Type
- boolean