<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>posturan</author_name>
  <author_url>https://blog.hatena.ne.jp/posturan/</author_url>
  <blog_title>Oboe吹きプログラマの黙示録</blog_title>
  <blog_url>https://oboe2uran.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>２つのオブジェクトを比較処理するものが大量にある時、if 文をたくさん書くのが嫌になり if文を隠ぺいして差がある時の処理を Consumer と Biconsumer で書くことを考えた。 public static &lt;T, U&gt; boolean parse(T t, U u, Consumer&lt;T&gt; delete, Consumer&lt;U&gt; add, BiConsumer&lt;T, U&gt; modified){ if (t==null || &quot;&quot;.equals(t)){ if (u != null &amp;&amp; !&quot;&quot;.equals(u)){ add.accept(u); return true; } }…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2016%2F07%2F09%2F111921&quot; title=&quot;BiConsumer を比較処理の記述で使う - Oboe吹きプログラマの黙示録&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>2016-07-09 11:19:21</published>
  <title>BiConsumer を比較処理の記述で使う</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2016/07/09/111921</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
