<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nowokay</author_name>
  <author_url>https://blog.hatena.ne.jp/nowokay/</author_url>
  <blog_title>きしだのHatena</blog_title>
  <blog_url>https://nowokay.hatenablog.com/</blog_url>
  <categories>
    <anon>java</anon>
    <anon>java8</anon>
  </categories>
  <description>Java8にlambda構文が入りましたが、これはクロージャーではない、とされています。 では、どのように「クロージャーではない」のか、ちょっと見てみます。 まず、lambdaを返すメソッドを定義します。 public static Supplier&lt;String&gt; createMessenger(String name, String address){ return () -&gt; { return String.format(&quot;私は%s、%sに住んでる&quot;, name, address); }; }</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnowokay.hatenablog.com%2Fentry%2F20130522%2F1369202662&quot; title=&quot;Java8のlambda構文がどのようにクロージャーではないか - きしだのHatena&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-05-22 15:04:22</published>
  <title>Java8のlambda構文がどのようにクロージャーではないか</title>
  <type>rich</type>
  <url>https://nowokay.hatenablog.com/entry/20130522/1369202662</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
