Actually, you can't assume HashMap
use linked lists. OpenJDK8's HashMap is a mixture of linked lists and trees.
It is a private variable, so you need to use reflection and rely on the internal detail. But once you go that path, you create dependency to that specific JDK version. For example, if you implement code to traverse the JDK8 HashMap, it may become useless with JDK9 tree, and so on, let alone other JDK implementation. (Edit: Looks like reflection may not work with Java 9.)
If you want to rely on some particular HashMap implementation, you should as well implement it yourself (or copy the OpenJDK one).