There is a HashMap instance. The only thing I will do with the instance is to call values() method described in the Map interface HashMap implements.
So I won't use any other possibilities interfaces provide.
Should I than declare the variable type of HashMap according to YAGNI and KISS or should I code to the interface and declare the type as Map?
Example of coding to the interface:
Map<Integer, String> langMap = new HashMap<>();
Example of class variable:
HashMap<Integer, String> langMap = new HashMap<>();