Skip to content

4.0.0

Latest
Compare
Choose a tag to compare
@vjik vjik released this 27 May 06:47
· 1 commit to master since this release
839e85e

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() to cases() and toValues() to values().
  • Chg: Use private constants in enum object.
  • Chg: On create object via method from() with invalid value throws ValueError instead UnexpectedValueException.