﻿{"id":686,"date":"2013-04-03T21:37:48","date_gmt":"2013-04-03T12:37:48","guid":{"rendered":"http:\/\/yucchi.jp\/blog\/?p=686"},"modified":"2013-04-24T19:59:45","modified_gmt":"2013-04-24T10:59:45","slug":"jdk8-lambda-%e3%81%9d%e3%81%ae%e4%bb%96%e3%81%84%e3%82%8d%e3%81%84%e3%82%8d-%e3%81%aa%e3%82%93%e3%81%a7%e3%82%82%e3%81%84%e3%81%84%e3%81%8b%e3%82%89%e5%8b%95%e3%81%8b%e3%81%97%e3%81%a6%e3%81%bf","status":"publish","type":"post","link":"http:\/\/yucchi.jp\/blog\/?p=686","title":{"rendered":"JDK8 Lambda \u305d\u306e\u4ed6\u3044\u308d\u3044\u308d \u306a\u3093\u3067\u3082\u3044\u3044\u304b\u3089\u52d5\u304b\u3057\u3066\u307f\u308b\u3000\u305d\u306e\uff12"},"content":{"rendered":"<p>\u4eca\u65e5\u306f\u6ce8\u76ee\u306e\u65b0\u6a5f\u80fd StringJoiner \u3092\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>Wristwatch \u306e\u30d6\u30e9\u30f3\u30c9\u3092\u5168\u3066\u8868\u793a\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u969b\u306b\u3001\u201d , \u201c \u3067\u9023\u7d50\u3055\u305b\u3066\u8868\u793a\u3055\u305b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u975e\u5e38\u306b\u7c21\u5358\u306b\u5b9f\u88c5\u53ef\u80fd\u306a\u306e\u3067\u4fbf\u5229\u306b\u4f7f\u3048\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u6628\u65e5\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<style type=\"text\/css\">\n<!--\ntable {color: #000000; background-color: #e9e8e2; font-family: \u3086\u305f\u307d\u3093\uff08\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\uff09}\n-->\n<\/style>\n<table width=\"100%\">\n<tbody>\n<tr>\n<td align=\"left\">mylambdaexamples\\MyLambdaExamples.java<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre start-line=\"20\">\r\n\/\/ Wristwatch \u30d6\u30e9\u30f3\u30c9\u3092\u5168\u3066\u8868\u793a\r\n\/\/ StringJoiner \u30af\u30e9\u30b9\u306e toStringJoiner() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044 , \u3067\u9023\u7d50\u8868\u793a\u3055\u305b\u3066\u307f\u308b\r\nSystem.out.println(\"\\n<-- Wristwatch \u30d6\u30e9\u30f3\u30c9\u3092\u5168\u3066\u8868\u793a -->\");\r\nStringJoiner brands = wristwatches.map(Wristwatch::getBrand).collect(toStringJoiner(\" , \"));\r\nSystem.out.println(brands.toString());\r\n\r\n<\/pre>\n<p>\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u3067\u3059\u306d\u3002(^_^)<\/p>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&lt;&#8211; Wristwatch \u30d6\u30e9\u30f3\u30c9\u3092\u5168\u3066\u8868\u793a &#8211;&gt;<br \/>\u30ed\u30ec\u30c3\u30af\u30b9 , \u30ab\u30eb\u30c6\u30a3\u30a8 , \u30c6\u30a3\u30d5\u30a1\u30cb\u30fc , \u30c1\u30e5\u30fc\u30c9\u30eb , \u30aa\u30e1\u30ac<\/p>\n<p>JDK8 \u306f\u81f3\u308c\u308a\u5c3d\u304f\u305b\u308a\u306e\u4fbf\u5229\u306a\u6a5f\u80fd\u304c\u6e80\u8f09\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\uff01<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:83c34591-39d0-486b-b435-f1b72c3fdcf6\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">Hatena \u30bf\u30b0: <a href=\"http:\/\/b.hatena.ne.jp\/t\/Java\" rel=\"tag\">Java<\/a><\/div>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_hatena\"><a href='\/\/b.hatena.ne.jp\/add?mode=confirm&url=http%3A%2F%2Fyucchi.jp%2Fblog%2F%3Fp%3D686&title=JDK8%20Lambda%20%E3%81%9D%E3%81%AE%E4%BB%96%E3%81%84%E3%82%8D%E3%81%84%E3%82%8D%20%E3%81%AA%E3%82%93%E3%81%A7%E3%82%82%E3%81%84%E3%81%84%E3%81%8B%E3%82%89%E5%8B%95%E3%81%8B%E3%81%97%E3%81%A6%E3%81%BF%E3%82%8B%E3%80%80%E3%81%9D%E3%81%AE%EF%BC%92' title='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='http:\/\/yucchi.jp\/blog\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/hatena.gif' alt='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' title='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' width='16' height='12' class='wp_social_bookmarking_light_img' \/><\/a><\/div>\n            <div class=\"wsbl_facebook\"><a href='http:\/\/www.facebook.com\/share.php?u=http%3A%2F%2Fyucchi.jp%2Fblog%2F%3Fp%3D686&t=JDK8%20Lambda%20%E3%81%9D%E3%81%AE%E4%BB%96%E3%81%84%E3%82%8D%E3%81%84%E3%82%8D%20%E3%81%AA%E3%82%93%E3%81%A7%E3%82%82%E3%81%84%E3%81%84%E3%81%8B%E3%82%89%E5%8B%95%E3%81%8B%E3%81%97%E3%81%A6%E3%81%BF%E3%82%8B%E3%80%80%E3%81%9D%E3%81%AE%EF%BC%92' title='Facebook \u306b\u30b7\u30a7\u30a2' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='http:\/\/yucchi.jp\/blog\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/facebook.png' alt='Facebook \u306b\u30b7\u30a7\u30a2' title='Facebook \u306b\u30b7\u30a7\u30a2' width='16' height='16' class='wp_social_bookmarking_light_img' \/><\/a><\/div>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"http:\/\/yucchi.jp\/blog\/?p=686\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"http:\/\/yucchi.jp\/blog\/?p=686\" data-text=\"JDK8 Lambda \u305d\u306e\u4ed6\u3044\u308d\u3044\u308d \u306a\u3093\u3067\u3082\u3044\u3044\u304b\u3089\u52d5\u304b\u3057\u3066\u307f\u308b\u3000\u305d\u306e\uff12\" data-lang=\"ja\">Tweet<\/a><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u306f\u6ce8\u76ee\u306e\u65b0\u6a5f\u80fd StringJoiner \u3092\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002 Wristwatch \u306e\u30d6\u30e9\u30f3\u30c9\u3092\u5168\u3066\u8868\u793a\u3055\u305b\u307e\u3059\u3002 \u305d\u306e\u969b\u306b\u3001\u201d , \u201c \u3067\u9023\u7d50\u3055\u305b\u3066\u8868\u793a\u3055\u305b\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u975e\u5e38\u306b\u7c21\u5358\u306b\u5b9f\u88c5\u53ef\u80fd\u306a\u306e\u3067\u4fbf\u5229\u306b\u4f7f\u3048\u305d\u3046\u3067\u3059\u3002 \u3067\u306f\u3001\u6628\u65e5\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 mylambdaexamples\\MyLambdaExamples.java \/\/ Wristwatch \u30d6\u30e9\u30f3\u30c9\u3092\u5168\u3066\u8868\u793a \/\/ StringJoiner \u30af\u30e9\u30b9\u306e toStringJoiner() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3044 , \u3067\u9023\u7d50\u8868\u793a\u3055\u305b\u3066\u307f\u308b System.out.println(&#8220;\\n&#8221;); StringJoiner bran\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[17],"class_list":["post-686","post","type-post","status-publish","format-standard","hentry","category-java","tag-java"],"_links":{"self":[{"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=686"}],"version-history":[{"count":2,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/686\/revisions"}],"predecessor-version":[{"id":794,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/686\/revisions\/794"}],"wp:attachment":[{"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=686"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yucchi.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}