{"id":67541,"date":"2026-01-28T22:08:48","date_gmt":"2026-01-28T14:08:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/67541.html"},"modified":"2026-01-28T22:08:48","modified_gmt":"2026-01-28T14:08:48","slug":"hashmap%e4%bf%9d%e5%ad%98%e4%b8%80%e4%b8%aakey-value%e9%94%ae%e5%80%bc%e5%af%b9%e7%9a%84%e8%bf%87%e7%a8%8b%ef%bc%88%e5%af%b9putval%ef%bc%88%ef%bc%89%e6%96%b9%e6%b3%95%e7%9a%84%e8%a7%a3%e8%af%bb","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/67541.html","title":{"rendered":"HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u7684\u8fc7\u7a0b\uff08\u5bf9putVal\uff08\uff09\u65b9\u6cd5\u7684\u89e3\u8bfb\uff09"},"content":{"rendered":"<p>\u9996\u5148\u9700\u77e5HashMap\u7684\u6570\u636e\u7ed3\u6784\u4e3a&#xff1a;\u54c8\u5e0c\u8868\u3001\u94fe\u8868\u3001\u7ea2\u9ed1\u6811<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"847\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260128140846-697a186e89936.png\" width=\"1419\" \/><\/p>\n<p>\u5411HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u65f6\u91cd\u70b9\u4f7f\u7528putVal&#xff08;&#xff09;\u65b9\u6cd5<\/p>\n<p>\u5728putVal&#xff08;&#xff09;\u65b9\u6cd5\u4e2d\u4f1a\u5b9a\u4e49&#xff1a;tab\u8868\u793a\u5b58\u5165&#xff0c;p\u8868\u793a\u54c8\u5e0c\u8868\u4e2d\u5df2\u6709<\/p>\n<p>Node&lt;K,V&gt;[] tab; Node&lt;K,V&gt; p<\/p>\n<p>\u00a0 HashMap\u5728\u5b58\u5165\u4e00\u4e2a\u503c\u65f6&#xff0c;\u4f1a\u5148\u68c0\u67e5\u5b9a\u4e49\u7684HashMap\u7684\u5bb9\u91cf\u662f\u5426\u4e3a0\u6216null&#xff0c;\u5982\u679c\u662f\u5176\u4e2d\u7684\u4e00\u79cd\u53ef\u80fd&#xff0c;resize\u4e2d\u6709\u5e38\u91cfDEFAULT_INITIAL_CAPACITY&#xff0c;\u5219\u5c06\u521d\u59cb\u5bb9\u91cf\u8bbe\u5b9a\u4e3a16\u3002<\/p>\n<p>if ((tab &#061; table) &#061;&#061; null || (n &#061; tab.length) &#061;&#061; 0)<br \/>\n    n &#061; (tab &#061; resize()).length;<\/p>\n<p>\u63a5\u4e0b\u6765\u4f1a\u901a\u8fc7hash\u503c\u6765\u8ba1\u7b97\u5e94\u5b58\u5728\u54c8\u5e0c\u8868\u4e2d\u7684\u4e0b\u6807\u4f4d\u7f6e&#xff0c;\u6b64\u4e0b\u6807\u4f4d\u7f6e\u5982\u679c\u5728\u54c8\u5e0c\u8868\u4e2d\u7684\u503c\u4e3anull&#xff0c;\u90a3\u4e48\u5c31\u5c06tab\u4e2d\u7684\u503c\u5b58\u8fdbnewNode\u4e2d&#xff08;\u54c8\u5e0c\u503c&#xff0c;key\u503c&#xff0c;value\u503c&#xff0c;next&#xff09;\u3002<\/p>\n<p>if ((p &#061; tab[i &#061; (n &#8211; 1) &amp; hash]) &#061;&#061; null)<br \/>\n    tab[i] &#061; newNode(hash, key, value, null);<\/p>\n<p>\u6b64\u4e0b\u6807\u4f4d\u7f6e\u4e0d\u4e3a\u7a7a&#xff0c;\u5982\u679c\u6709\u540c\u6837\u7684\u54c8\u5e0c\u503c\u4e14key\u7684\u5185\u5bb9\u76f8\u540c&#xff0c;\u6216key\u4e0d\u4e3a\u7a7a\u4e14key\u503c\u5df2\u5b58\u5728&#xff0c;\u5219\u5c06\u65e7\u7684value\u503c\u66ff\u6362\u4e3a\u65b0\u7684value\u503c\u3002<\/p>\n<p>else {<br \/>\n    Node&lt;K,V&gt; e; K k;<br \/>\n    if (p.hash &#061;&#061; hash &amp;&amp;<br \/>\n        ((k &#061; p.key) &#061;&#061; key || (key !&#061; null &amp;&amp; key.equals(k))))<br \/>\n        e &#061; p;<\/p>\n<p>\u6b64\u4e0b\u6807\u4f4d\u7f6e\u4e0d\u4e3a\u7a7a\u4e14key\u4e0d\u91cd\u590d&#xff0c;\u5219\u68c0\u67e5p\u662f\u5426\u5b58\u5728\u7ea2\u9ed1\u6811\u4e2d&#xff0c;\u5728\u6811\u4e2d&#xff0c;\u5219\u5c06\u952e\u503c\u5bf9\u5b58\u5165\u7ea2\u9ed1\u6811\u4e2d\u3002<br \/>\nelse if (p instanceof TreeNode)<br \/>\n    e &#061; ((TreeNode&lt;K,V&gt;)p).putTreeVal(this, tab, hash, key, value);<\/p>\n<p>\u6b64\u4e0b\u6807\u4f4d\u7f6e\u4e0d\u4e3a\u7a7a\u4e14key\u4e0d\u91cd\u590d&#xff0c;p\u4e0d\u5b58\u5728\u7ea2\u9ed1\u6811\u4e2d&#xff0c;\u5219\u5224\u65ad\u5f53\u524d\u4e0b\u6807\u7684next\u662f\u5426\u4e3a\u7a7a&#xff0c;\u4e3a\u7a7a\u5219\u5c06\u503c\u5b58\u5230next\u4e2d&#xff0c;\u540c\u65f6\u9700\u8981\u68c0\u67e5&#xff0c;\u6dfb\u52a0\u65b0\u952e\u503c\u5bf9\u540e\u4f1a\u4e0d\u4f1a\u4ea7\u751f\u7ea2\u9ed1\u6811&#xff0c;\u6761\u4ef6\u4e3a\u6b64\u94fe\u8868\u957f\u5ea6\u5927\u4e8e8\u4e14\u6570\u7ec4\u5bb9\u91cf\u5927\u4e8e64&#xff0c;\u6ee1\u8db3\u6761\u4ef6\u5219\u4ea7\u751f\u7ea2\u9ed1\u6811&#xff0c;\u540c\u65f6\u5728\u94fe\u8868\u4e2d\u68c0\u67e5\u5230\u7684\u76f8\u540c\u7684key\u4e5f\u8fdb\u884c\u66ff\u6362\u64cd\u4f5c\u3002<\/p>\n<p>else {<br \/>\n    for (int binCount &#061; 0; ; &#043;&#043;binCount) {<br \/>\n        if ((e &#061; p.next) &#061;&#061; null) {<br \/>\n            p.next &#061; newNode(hash, key, value, null);<br \/>\n            if (binCount &gt;&#061; TREEIFY_THRESHOLD &#8211; 1) \/\/ -1 for 1st<br \/>\n                treeifyBin(tab, hash);<br \/>\n            break;<br \/>\n        }<br \/>\n        if (e.hash &#061;&#061; hash &amp;&amp;<br \/>\n            ((k &#061; e.key) &#061;&#061; key || (key !&#061; null &amp;&amp; key.equals(k))))<br \/>\n            break;<br \/>\n        p &#061; e;<br \/>\n    }<br \/>\n}<\/p>\n<p>\u540c\u65f6\u5728\u66ff\u6362\u64cd\u4f5c\u65f6&#xff0c;\u7528\u65b0\u7684value\u66ff\u6362\u65e7\u7684value&#xff0c;\u53ef\u8fd4\u56de\u4e00\u4e2a\u65e7\u7684value\u503coldValue<\/p>\n<p>if (e !&#061; null) { \/\/ existing mapping for key<br \/>\n    V oldValue &#061; e.value;<br \/>\n    if (!onlyIfAbsent || oldValue &#061;&#061; null)<br \/>\n        e.value &#061; value;<br \/>\n    afterNodeAccess(e);<br \/>\n    return oldValue;<br \/>\n}<\/p>\n<p>\u5728putVal&#xff08;&#xff09;\u65b9\u6cd5\u7684\u6700\u540e\u4f1a\u4f7f\u7528resize\u65b9\u6cd5\u7528\u6765\u8fbe\u5230\u5b58\u50a8\u8fc7\u7a0b\u4e2d\u6269\u5bb9\u7684\u9700\u6c42&#xff0c;\u6bcf\u6b21\u6269\u5bb9\u540e\u7684\u5bb9\u91cf\u662f\u6269\u5bb9\u524d\u7684\u4e8c\u500d&#xff0c;\u7b80\u5355\u8bb2\u4e00\u4e0b\u6269\u5bb9\u6761\u4ef6&#xff1a;<\/p>\n<p>\u7b2c\u4e00\u79cd\u60c5\u51b5&#xff1a;\u5728\u7b2c\u4e00\u6b21\u5b58\u5165\u503c\u65f6\u5c06\u521d\u59cb\u5bb9\u91cf\u6269\u5bb9\u4e3a16&#xff0c;\u524d\u9762\u63d0\u5230\u8fc7\u3002<\/p>\n<p>\u7b2c\u4e8c\u79cd\u60c5\u51b5&#xff1a;\u5728\u5355\u6761\u94fe\u8868\u957f\u5ea6\u8fbe\u52308\u4e14\u6570\u7ec4\u5bb9\u91cf\u5c0f\u4e8e64\u65f6\u4f1a\u6269\u5bb9\u4e00\u6b21&#xff0c;\u907f\u514d\u7ea2\u9ed1\u6811\u8f7b\u6613\u4ea7\u751f\u5e26\u6765\u7684\u7ef4\u62a4\u6210\u672c\u3002<\/p>\n<p>\u7b2c\u4e09\u79cd\u60c5\u51b5&#xff1a;HashMap\u4e2d\u7684\u5143\u7d20\u4e2a\u6570\u8d85\u8fc7threshold\u6269\u5bb9\u9608\u503c&#xff0c;threshold &#061; \u6570\u7ec4\u5bb9\u91cf * \u52a0\u8f7d\u56e0\u5b50\u3002\u52a0\u8f7d\u56e0\u5b50\u521d\u59cb\u503c\u4e3a0.75&#xff0c;\u53ef\u81ea\u5b9a\u4e49\u3002<\/p>\n<p>&#043;&#043;modCount;<br \/>\nif (&#043;&#043;size &gt; threshold)<br \/>\n    resize();<br \/>\nafterNodeInsertion(evict);<br \/>\nreturn null;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u9700\u77e5HashMap\u7684\u6570\u636e\u7ed3\u6784\u4e3a&#xff1a;\u54c8\u5e0c\u8868\u3001\u94fe\u8868\u3001\u7ea2\u9ed1\u6811\u5411HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u65f6\u91cd\u70b9\u4f7f\u7528putVal&#xff08;&#xff09;\u65b9\u6cd5\u5728putVal&#xff08;&#xff09;\u65b9\u6cd5\u4e2d\u4f1a\u5b9a\u4e49&#xff1a;tab\u8868\u793a\u5b58\u5165&#xff0c;p\u8868\u793a\u54c8\u5e0c\u8868\u4e2d\u5df2\u6709Node[] tab; Node pHashMap\u5728\u5b58\u5165\u4e00\u4e2a\u503c\u65f6&#xff0c;\u4f1a\u5148\u68c0\u67e5\u5b9a\u4e49\u7684HashMap\u7684\u5bb9\u91cf\u662f\u5426\u4e3a0\u6216null&#xff0c;\u5982\u679c\u662f\u5176\u4e2d\u7684\u4e00<\/p>\n","protected":false},"author":2,"featured_media":67540,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,190],"topic":[],"class_list":["post-67541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u7684\u8fc7\u7a0b\uff08\u5bf9putVal\uff08\uff09\u65b9\u6cd5\u7684\u89e3\u8bfb\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/67541.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u7684\u8fc7\u7a0b\uff08\u5bf9putVal\uff08\uff09\u65b9\u6cd5\u7684\u89e3\u8bfb\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148\u9700\u77e5HashMap\u7684\u6570\u636e\u7ed3\u6784\u4e3a&#xff1a;\u54c8\u5e0c\u8868\u3001\u94fe\u8868\u3001\u7ea2\u9ed1\u6811\u5411HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u65f6\u91cd\u70b9\u4f7f\u7528putVal&#xff08;&#xff09;\u65b9\u6cd5\u5728putVal&#xff08;&#xff09;\u65b9\u6cd5\u4e2d\u4f1a\u5b9a\u4e49&#xff1a;tab\u8868\u793a\u5b58\u5165&#xff0c;p\u8868\u793a\u54c8\u5e0c\u8868\u4e2d\u5df2\u6709Node[] tab; Node pHashMap\u5728\u5b58\u5165\u4e00\u4e2a\u503c\u65f6&#xff0c;\u4f1a\u5148\u68c0\u67e5\u5b9a\u4e49\u7684HashMap\u7684\u5bb9\u91cf\u662f\u5426\u4e3a0\u6216null&#xff0c;\u5982\u679c\u662f\u5176\u4e2d\u7684\u4e00\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/67541.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-28T14:08:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260128140846-697a186e89936.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/67541.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/67541.html\",\"name\":\"HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u7684\u8fc7\u7a0b\uff08\u5bf9putVal\uff08\uff09\u65b9\u6cd5\u7684\u89e3\u8bfb\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-28T14:08:48+00:00\",\"dateModified\":\"2026-01-28T14:08:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/67541.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/67541.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/67541.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u7684\u8fc7\u7a0b\uff08\u5bf9putVal\uff08\uff09\u65b9\u6cd5\u7684\u89e3\u8bfb\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u7684\u8fc7\u7a0b\uff08\u5bf9putVal\uff08\uff09\u65b9\u6cd5\u7684\u89e3\u8bfb\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/67541.html","og_locale":"zh_CN","og_type":"article","og_title":"HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u7684\u8fc7\u7a0b\uff08\u5bf9putVal\uff08\uff09\u65b9\u6cd5\u7684\u89e3\u8bfb\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u9996\u5148\u9700\u77e5HashMap\u7684\u6570\u636e\u7ed3\u6784\u4e3a&#xff1a;\u54c8\u5e0c\u8868\u3001\u94fe\u8868\u3001\u7ea2\u9ed1\u6811\u5411HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u65f6\u91cd\u70b9\u4f7f\u7528putVal&#xff08;&#xff09;\u65b9\u6cd5\u5728putVal&#xff08;&#xff09;\u65b9\u6cd5\u4e2d\u4f1a\u5b9a\u4e49&#xff1a;tab\u8868\u793a\u5b58\u5165&#xff0c;p\u8868\u793a\u54c8\u5e0c\u8868\u4e2d\u5df2\u6709Node[] tab; Node pHashMap\u5728\u5b58\u5165\u4e00\u4e2a\u503c\u65f6&#xff0c;\u4f1a\u5148\u68c0\u67e5\u5b9a\u4e49\u7684HashMap\u7684\u5bb9\u91cf\u662f\u5426\u4e3a0\u6216null&#xff0c;\u5982\u679c\u662f\u5176\u4e2d\u7684\u4e00","og_url":"https:\/\/www.wsisp.com\/helps\/67541.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-28T14:08:48+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260128140846-697a186e89936.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/67541.html","url":"https:\/\/www.wsisp.com\/helps\/67541.html","name":"HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u7684\u8fc7\u7a0b\uff08\u5bf9putVal\uff08\uff09\u65b9\u6cd5\u7684\u89e3\u8bfb\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-28T14:08:48+00:00","dateModified":"2026-01-28T14:08:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/67541.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/67541.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/67541.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"HashMap\u4fdd\u5b58\u4e00\u4e2akey-value\u952e\u503c\u5bf9\u7684\u8fc7\u7a0b\uff08\u5bf9putVal\uff08\uff09\u65b9\u6cd5\u7684\u89e3\u8bfb\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/67541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=67541"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/67541\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/67540"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=67541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=67541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=67541"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=67541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}