rantav/hector — pull request #377 by ash2k (2011-12-29 13:16:07+00:00)
Title: Improve ComparatorType class

- Class' constructor is private so make it final;
- Make all static fields final to protect from modification(s);
- Use immutable map instead of array to store references to
known ComparatorTypes. This is faster and don't concatenate
strings (produce garbage) on gets;
- Implement hashCode() and equals();
- Add a test for this class.