I am trying to convert a piece of Java code which uses a HashMap that contains as a key an object and a value as an object.
private static HashMap