@TestpublicvoidgivenLinkedHashMap_whenRemovesEldestEntry_thenCorrect(){ LinkedHashMap<Integer, String> map =newMyLinkedHashMap<>(16,.75f,true); map.put(1,null); map.put(2,null); map.put(3,null); map.put(4,null);
But my experience aligns with @BobKerns experiences, and so it does seem like the best choice. Now: I would not be against ability to use other Maps, so that only the default implementation would use LHM. Since this actually leads to a bigger discussion -- if and how to extends JsonNod...