Implement ideas from RFC Enumerations:
- New: Add protected method
match()
. - New: Add factory method
tryFrom()
. - New: Add method
getName()
. - Chg: Remove immutability objects.
- Chg: Rename methods
toObjects()
tocases()
andtoValues()
tovalues()
. - Chg: Use private constants in enum object.
- Chg: On create object via method
from()
with invalid value throwsValueError
insteadUnexpectedValueException
.