{"id":1410,"date":"2023-03-19T11:36:50","date_gmt":"2023-03-19T03:36:50","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1410"},"modified":"2023-04-28T21:07:45","modified_gmt":"2023-04-28T13:07:45","slug":"record-of-advanced-java-development-skills","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/19\/record-of-advanced-java-development-skills\/","title":{"rendered":"Java\u9ad8\u7ea7\u5f00\u53d1\u6280\u5de7\u8bb0\u5f55"},"content":{"rendered":"<pre><code class=\"language-java\">\/\/\u5bf9\u8c61\u62f7\u8d1d\nBeanUtils.copyProperties(object, object)\n\n\/\/\u96c6\u5408\u5de5\u5177\nCollectionUtils.isEmpty(list)\nList&lt;Long&gt; ids = items.stream().map(p -&gt; p.getId()).collect(Collectors.toList());\nlist.stream()\n    .filter(p -&gt; TradeStatus.ONLINE.name().equalsIgnoreCase(p.getTradeStatus()))\n    .forEach(p -&gt; {\n\n    });\n\n\/\/\u5b57\u7b26\u4e32\u5de5\u5177\nStrings.nullToEmpty(string)\n\n\/\/A|B|C|D|E\nList&lt;String&gt; head = Arrays.asList(&quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;E&quot;);\nString rowStr = String.join(separator, head);\n\n\/\/\u5bf9\u8c61\u5de5\u5177\nObjects.equals(object, object)\nObjects.isNull(object)\nObjects.nonNull(object)\n\n\/\/\u65e5\u671f\u5de5\u5177\nDate now = DateUtils.truncate(dateTimeHelper.selectDateTime(), Calendar.DAY_OF_MONTH);\nString begin = DateFormatUtils.format(DateUtils.addDays(now, -req.getLatestDays()), &quot;yyyyMMdd&quot;);\nString end = DateFormatUtils.format(DateUtils.addDays(now, -1), &quot;yyyyMMdd&quot;);\n\nDate date = &quot;20200101&quot;;\nDateFormatUtils.format(DateUtils.addDays(date, -1), &quot;yyyyMMdd&quot;);\n\n\/\/BigDecimal\u8fd0\u7b97\nnew BigDecimal(100).divide(new BigDecimal(10000))\n\n\/\/\u5927\u5199\nWordUtils.capitalize(profile)\n\n\/\/map\u904d\u5386\nmap.entrySet().forEach(entry -&gt; {\n\n});\n\n\/\/\u7ebf\u7a0b\u5b89\u5168\nList&lt;T&gt; list = Collections.synchronizedList(new LinkedList&lt;&gt;());\n\n\/\/AtomicInteger\nAtomicInteger count = new AtomicInteger(0);\ncount.incrementAndGet()\ncount.intValue()\ncount.addAndGet(5)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/\/\u5bf9\u8c61\u62f7\u8d1d BeanUtils.copyProperties(object, object) \/\/\u96c6\u5408\u5de5\u5177  [&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-1410","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\/1410","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=1410"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1410\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}