Remove requirement that Trigger and State subclass Enum.

Any class that properly implements equals and hashCode will work.
Merge pull request #2 from jamestalmage/remove-enum-requirement

Remove requirement that Trigger and State subclass Enum.