Java se puede utilizar un objeto como clave

Yes, objects of custom classes can be used as a key in a HashMap
see source for details.
Skynet