{"provider_url":"https://hatena.blog","description":"\u8868\u8a18\u306e\u3068\u304a\u308a\u3067\u3059\u3002 Java8\u306eFunctionalInterface\u7fa4\u306f\u4f7f\u3044\u52dd\u624b\u304c\u3088\u304f\u3066\u3001\u305d\u3063\u3061\u3092\u4e3b\u306b\u4f7f\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001Groovy\u3082Java8\u306e\u8a00\u8a9e\u4ed5\u69d8\u5bfe\u5fdc\u3092\u9032\u3081\u3066\u3066\u3001Groovy2.4.3\u304b\u3089(\u305d\u308c\u4ee5\u524d\u304b\u3089\uff1f)\u306f def func = [apply: {s -> s.size()}] as Function<String, Integer> \u306a\u3069\u3068\u66f8\u304b\u306a\u304f\u3066\u3082Closure\u3067\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 import java.util.stream.Stream Stream.of('foo', 'bar', 'baz') .mapToInt{it.size()} .f\u2026","blog_title":"mike-neck\u306e\u30d6\u30ed\u30b0","categories":["groovy","java"],"height":"190","url":"https://mike-neck.hatenadiary.com/entry/2015/05/04/230225","published":"2015-05-04 23:02:25","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/m/mike_neck/20150504/20150504230142.png","title":"Groovy2.4.3\u3067Java8\u306eStream\u3068\u304bOptional\u306e\u6f14\u7b97\u3082Closure\u3067\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u305f\u4ef6","width":"100%","provider_name":"Hatena Blog","author_name":"mike_neck","author_url":"https://blog.hatena.ne.jp/mike_neck/","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmike-neck.hatenadiary.com%2Fentry%2F2015%2F05%2F04%2F230225\" title=\"Groovy2.4.3\u3067Java8\u306eStream\u3068\u304bOptional\u306e\u6f14\u7b97\u3082Closure\u3067\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u305f\u4ef6 - mike-neck\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","blog_url":"https://mike-neck.hatenadiary.com/"}