IEnum.opIndex

Looks up an enum member's name from its value, using opIndex.

  1. Name opIndex(Value v)
    interface IEnum
    opIndex
  2. Value opIndex(Name n)

Parameters

v Value

value to look up

Return Value

Type: Name

corresponding name

Throws

ArrayBoundsException if value doesn't exist in enum

Meta