{"id":3271,"date":"2023-04-11T12:06:41","date_gmt":"2023-04-11T04:06:41","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/appshangjia\/3271.html"},"modified":"2023-04-11T12:06:41","modified_gmt":"2023-04-11T04:06:41","slug":"android-guavas-%e6%98%af%e4%bb%80%e4%b9%88%e6%84%8f%e6%80%9d%ef%bc%9fandroid-guavas%e5%90%8d%e8%af%8d%e8%a7%a3%e9%87%8a","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/appshangjia\/3271.html","title":{"rendered":"android guavas \u662f\u4ec0\u4e48\u610f\u601d\uff1fandroid guavas\u540d\u8bcd\u89e3\u91ca"},"content":{"rendered":"<p>Guava\u662fGoogle\u516c\u53f8\u5f00\u6e90\u7684\u4e00\u4e2aJava\u5de5\u5177\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u5b9e\u7528\u7684\u5de5\u5177\u7c7b\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8Java\u7a0b\u5e8f\u5458\u7684\u5f00\u53d1\u6548\u7387\u3002Guava\u7684\u5168\u79f0\u662fGoogle common utilities for Java\uff0c\u5373Google Java\u901a\u7528\u5de5\u5177\u5e93\u3002Guava\u7684\u76ee\u6807\u662f\u4e3aJava\u5f00\u53d1\u8005\u63d0\u4f9b\u4e00\u4e2a\u66f4\u52a0\u4f18\u96c5\u3001\u9ad8\u6548\u3001\u7b80\u6d01\u7684\u7f16\u7a0b\u65b9\u5f0f\uff0c\u8ba9Java\u5f00\u53d1\u53d8\u5f97\u66f4\u52a0\u6109\u60a6\u3002<\/p>\n<p>Guava\u7684\u4e3b\u8981\u7279\u70b9\u5982\u4e0b\uff1a<\/p>\n<p>1. \u9ad8\u6548\uff1aGuava\u7684\u4ee3\u7801\u7ecf\u8fc7\u4e86\u7cbe\u5fc3\u4f18\u5316\uff0c\u6027\u80fd\u975e\u5e38\u9ad8\u3002<\/p>\n<p>2. \u6613\u7528\uff1aGuava\u63d0\u4f9b\u4e86\u8bb8\u591a\u6613\u7528\u7684\u5de5\u5177\u7c7b\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5927\u5927\u7b80\u5316Java\u5f00\u53d1\u8005\u7684\u5de5\u4f5c\u3002<\/p>\n<p>3. \u5b89\u5168\uff1aGuava\u63d0\u4f9b\u4e86\u8bb8\u591a\u5b89\u5168\u7684\u5de5\u5177\u7c7b\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u907f\u514d\u4e00\u4e9b\u5b89\u5168\u6f0f\u6d1e\u3002<\/p>\n<p>4. \u53ef\u9760\uff1aGuava\u7684\u4ee3\u7801\u7ecf\u8fc7\u4e86\u5e7f\u6cdb\u7684\u6d4b\u8bd5\uff0c\u975e\u5e38\u53ef\u9760\u3002<\/p>\n<p>Guava\u7684\u529f\u80fd\u975e\u5e38\u4e30\u5bcc\uff0c\u4e0b\u9762\u6211\u4eec\u5c06\u4ecb\u7ecd\u4e00\u4e9bGuava\u7684\u4e3b\u8981\u529f\u80fd\u3002<\/p>\n<p>1. \u96c6\u5408\u64cd\u4f5c<\/p>\n<p>Guava\u63d0\u4f9b\u4e86\u8bb8\u591a\u96c6\u5408\u64cd\u4f5c\u7684\u5de5\u5177\u7c7b\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5927\u5927\u7b80\u5316Java\u5f00\u53d1\u8005\u7684\u96c6\u5408\u64cd\u4f5c\u3002\u4f8b\u5982\uff0cGuava\u63d0\u4f9b\u4e86ImmutableList\u3001ImmutableSet\u3001ImmutableMap\u7b49\u4e0d\u53ef\u53d8\u96c6\u5408\u7c7b\uff0c\u8fd9\u4e9b\u96c6\u5408\u7c7b\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u907f\u514d\u4e00\u4e9b\u7ebf\u7a0b\u5b89\u5168\u95ee\u9898\u3002Guava\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u96c6\u5408\u64cd\u4f5c\u7684\u5de5\u5177\u7c7b\uff0c\u4f8b\u5982Lists\u3001Maps\u3001Sets\u7b49\uff0c\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u66f4\u52a0\u65b9\u4fbf\u5730\u8fdb\u884c\u96c6\u5408\u64cd\u4f5c\u3002<\/p>\n<p>2. \u5b57\u7b26\u4e32\u64cd\u4f5c<\/p>\n<p>Guava\u63d0\u4f9b\u4e86\u8bb8\u591a\u5b57\u7b26\u4e32\u64cd\u4f5c\u7684\u5de5\u5177\u7c7b\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5927\u5927\u7b80\u5316Java\u5f00\u53d1\u8005\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\u3002\u4f8b\u5982\uff0cGuav<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-04\/03\/17\/19666001975.jpg\" \/><\/figure>\n<\/p>\n<p>a\u63d0\u4f9b\u4e86Splitter\u3001J<a href=\"https:\/\/www.yimenapp.net\/dabao-253.html\">\u8f6f\u4ef6\u5206\u53d1\u5e73\u53f0<\/a>oiner\u7b49\u5de5\u5177\u7c7b\uff0c\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u66f4\u52a0\u65b9\u4fbf\u5730\u8fdb\u884c\u5b57\u7b26\u4e32\u7684\u62c6\u5206\u548c\u62fc\u63a5\u64cd\u4f5c\u3002<\/p>\n<p>3. \u7f16\u7801\u64cd\u4f5c<\/p>\n<p>Guava\u63d0\u4f9b\u4e86\u8bb8\u591a\u7f16\u7801\u64cd\u4f5c\u7684\u5de5\u5177\u7c7b\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u66f4\u52a0\u65b9\u4fbf\u5730\u8fdb\u884c\u7f16\u7801\u64cd\u4f5c\u3002\u4f8b\u5982\uff0cGuava\u63d0\u4f9b\u4e86Base64\u3001UrlEscapers\u7b49\u5de5\u5177\u7c7b\uff0c\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u8fdb\u884cBase64\u7f16\u7801\u548cURL\u7f16\u7801\u64cd\u4f5c\u3002<\/p>\n<p>4. \u7f13\u5b58\u64cd\u4f5c<\/p>\n<p>Guava\u63d0\u4f9b\u4e86\u8bb8\u591a\u7f13\u5b58\u64cd\u4f5c\u7684\u5de5\u5177\u7c7b\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u66f4\u52a0\u65b9\u4fbf\u5730\u8fdb\u884c\u7f13\u5b58\u64cd\u4f5c\u3002\u4f8b\u5982\uff0cGuava\u63d0\u4f9b\u4e86CacheBuilder\u3001LoadingCache\u7b49\u5de5\u5177\u7c7b\uff0c\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u521b\u5efa\u9ad8\u6548\u7684\u7f13\u5b58\u3002<\/p>\n<p>5. \u4e8b\u4ef6\u603b\u7ebf<\/p>\n<p>Guava\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4e8b\u4ef6\u603b\u7ebf\u6846\u67b6\uff0c\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u5b9e\u73b0\u4e8b\u4ef6\u7684\u53d1\u5e03\u548c\u8ba2\u9605\u3002\u4e8b\u4ef6\u603b\u7ebf\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u66f4\u52a0\u65b9\u4fbf\u5730\u5b9e\u73b0\u5404\u79cd\u4e8b\u4ef6\u9a71\u52a8\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>6. \u5e76\u53d1\u64cd\u4f5c<\/p>\n<p>Guava\u63d0\u4f9b\u4e86\u8bb8\u591a\u5e76\u53d1\u64cd\u4f5c\u7684\u5de5\u5177\u7c7b\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u66f4\u52a0\u65b9\u4fbf\u5730\u8fdb\u884c\u5e76\u53d1\u64cd\u4f5c\u3002\u4f8b\u5982\uff0cGuava\u63d0\u4f9b\u4e86Futures\u3001ListenableFuture\u7b49\u5de5\u5177\u7c7b\uff0c\u53ef\u4ee5\u5e2e\u52a9Java\u5f00\u53d1\u8005\u66f4\u52a0\u65b9\u4fbf\u5730\u8fdb\u884c\u5f02\u6b65\u64cd\u4f5c\u3002<\/p>\n<p>\u603b\u4e4b\uff0cGuava\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684Java\u5de5\u5177\u5e93\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8Java\u5f00\u53d1\u8005\u7684\u5f00\u53d1\u6548\u7387\u3002\u5982\u679c\u4f60\u662f\u4e00\u540dJava\u5f00\u53d1\u8005\uff0c\u90a3\u4e48\u4e00\u5b9a\u8981\u5b66\u4f1a\u4f7f\u7528Guava\uff0c\u5b83\u53ef\u4ee5\u8ba9\u4f60\u7684Java\u5f00\u53d1\u53d8\u5f97\u66f4\u52a0\u6109\u60a6\u3002<\/p>\n<p>       <a href=\"https:\/\/www.yimenapp.net\/dabao-1472.html\">APP\u5f15\u5bfc\u9875\u662f\u4ec0\u4e48<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Guava\u662fGoogle\u516c\u53f8\u5f00\u6e90\u7684\u4e00\u4e2aJava\u5de5\u5177\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u5b9e\u7528\u7684\u5de5\u5177\u7c7b\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8Java\u7a0b\u5e8f\u5458\u7684\u5f00\u53d1\u6548\u7387\u3002Guava\u7684\u5168\u79f0\u662fGoogle common utilities for <\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[3417,3675,3676,789,966],"class_list":["post-3271","post","type-post","status-publish","format-standard","hentry","category-appshangjia","tag-ipa","tag-windowsios","tag-3676","tag-789","tag-966"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/3271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=3271"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/3271\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=3271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=3271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=3271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}