(K key, V value)
| 374 | /// @return the value of any previous mapping with the specified key or |
| 375 | /// `null` if there was no such mapping. |
| 376 | @Override |
| 377 | public V put(K key, V value) { |
| 378 | V result = putImpl(key, value); |
| 379 | |
| 380 | if (removeEldestEntry(head)) { |
| 381 | remove(head.key); |
| 382 | } |
| 383 | |
| 384 | return result; |
| 385 | } |
| 386 | |
| 387 | V putImpl(K key, V value) { |
| 388 | LinkedHashMapEntry<K, V> m; |
no test coverage detected