{"id":66,"date":"2023-02-12T21:05:18","date_gmt":"2023-02-12T13:05:18","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=66"},"modified":"2023-02-12T21:05:45","modified_gmt":"2023-02-12T13:05:45","slug":"java-collection-notes","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/12\/java-collection-notes\/","title":{"rendered":"Java\u96c6\u5408\u5c0f\u7ed3"},"content":{"rendered":"<h2>List\u4e0eSet\u7684\u533a\u522b<\/h2>\n<p>1\u3001List\u3001Set\u90fd\u662f\u7ee7\u627f\u81eaCollection\u63a5\u53e3<\/p>\n<p>2\u3001List\u7279\u70b9\uff1a\u5143\u7d20\u6709\u653e\u5165\u987a\u5e8f\uff0c\u5143\u7d20\u53ef\u91cd\u590d\uff1bSet\u7279\u70b9\uff1a\u5143\u7d20\u65e0\u653e\u5165\u987a\u5e8f\uff0c\u5143\u7d20\u4e0d\u53ef\u91cd\u590d\uff08\u6ce8\u610f\uff1a\u5143\u7d20\u867d\u7136\u65e0\u653e\u5165\u987a\u5e8f\uff0c\u4f46\u662f\u5143\u7d20\u5728set\u4e2d\u7684\u4f4d\u7f6e\u662f\u7531\u8be5\u5143\u7d20\u7684HashCode\u51b3\u5b9a\u7684\uff0c\u5176\u4f4d\u7f6e\u5176\u5b9e\u662f\u56fa\u5b9a\u7684\uff09<\/p>\n<p>3\u3001List\u63a5\u53e3\u6709\u4e09\u4e2a\u5b9e\u73b0\u7c7b\uff1a<code>LinkedList<\/code>\uff0c<code>ArrayList<\/code>\uff0c<code>Vector<\/code>\uff1bSet\u63a5\u53e3\u6709\u4e24\u4e2a\u5b9e\u73b0\u7c7b\uff1a<code>HashSet<\/code>(\u5e95\u5c42\u7531HashMap\u5b9e\u73b0)\uff0c<code>LinkedHashSet<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>List\u4e0eSet\u7684\u533a\u522b 1\u3001List\u3001Set\u90fd\u662f\u7ee7\u627f\u81eaCollection\u63a5\u53e3 2\u3001List\u7279\u70b9\uff1a\u5143\u7d20\u6709\u653e\u5165\u987a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-java-basic"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}