Closed azell closed 8 years ago
Enums have certain advantages over vanilla classes:
It would be a simpler implementation to use an enum instead of a class for CaseObjects. I did a quick proof of concept and made the following changes:
CaseObjects
implements
equals
hashCode
static
Basic unit tests pass. Will try and put together a pull request though it is possible that this change may break existing clients.
It's early in the life of Halva so breaking changes aren't a big deal. I look forward to your PR.
Enums have certain advantages over vanilla classes:
It would be a simpler implementation to use an enum instead of a class for
CaseObjects
. I did a quick proof of concept and made the following changes:implements
listequals
andhashCode
static
from method signatures and fieldsBasic unit tests pass. Will try and put together a pull request though it is possible that this change may break existing clients.