Actually they are enums, which makes it unnecessary to use .equals.
Doing it this way around eliminates potential nullpointers, though, but I see what you mean.