A type safe enumeration object that is keyed by an Int
value for switch statements and storage in DBs.
Used for indicating distinct states in a generic manner
where each enum should have an associated int value. The
given int should be unique for each enum value as hashCode
and equals depends solely on the int value given. Most
child classes should extend IntEnum and create static instances.
author: Iain Shigeoka |