MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / put

Method put

Ports/CLDC11/src/java/util/LinkedHashMap.java:376–385  ·  view source on GitHub ↗
(K key, V value)

Source from the content-addressed store, hash-verified

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;

Callers 3

buildNativeMenuBarMethod · 0.95
buildExtensionMenusMethod · 0.95
loadMethod · 0.95

Calls 3

putImplMethod · 0.95
removeEldestEntryMethod · 0.95
removeMethod · 0.95

Tested by

no test coverage detected