Take a look at this example code:

Object a = new Object();
Object b = new Object();

Map<String, Object> map = new HashMap<>();
map.put("1", a);
map.put("2", a);
map.put("3",...