<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>PlugOut</author_name>
  <author_url>https://blog.hatena.ne.jp/PlugOut/</author_url>
  <blog_title>Unknown Region</blog_title>
  <blog_url>https://plugout.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>ちょっとハマったのでメモ。 java.util.Functionやjava.util.ConsumerなどのFunctionalInterfaceなクラスのインスタンスを引数に取るメソッドに対して、Lambda式を与えると「ambiguous（あいまい）」としてコンパイルエラーになるケースが存在する。 例えば以下のクラスはコンパイルエラーになる。 例: Demo1.java import java.util.function.Consumer; import java.util.function.Function; public class Demo { public static void …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fplugout.hateblo.jp%2Fentry%2F2021%2F07%2F02%2F234045&quot; title=&quot;【Java】Lambda式で「ambiguous（あいまい）」になるケースについて - Unknown Region&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>https://cdn-ak.f.st-hatena.com/images/fotolife/P/PlugOut/20190627/20190627004436.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-02 23:40:45</published>
  <title>【Java】Lambda式で「ambiguous（あいまい）」になるケースについて</title>
  <type>rich</type>
  <url>https://plugout.hateblo.jp/entry/2021/07/02/234045</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
