ModelMap subclasses LinkedHashMap
which in turns extends HashMap
The generic type of ModelMap is fixed at Map<String, Object>
So you can iterate through the keys of a map as in HashMap
, you can use keyset() or entryset()
for (Map.Entry<String, Object> entry : map.entrySet()) {
System.out.println("Key = " + entry.getKey() + ", Value = " + entry.getValue());
}
*