I think that `contains`, `get`, and `names` are reinventing the wheel. Why not a `getEnums()` method that exposes the `this.enums` `HashMap` directly?