<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wrongwrongwrongwrong163377</author_name>
  <author_url>https://blog.hatena.ne.jp/wrongwrongwrongwrong163377/</author_url>
  <blog_title>wrongwrongな開発日記</blog_title>
  <blog_url>https://wrongwrong163377.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>java</anon>
  </categories>
  <description>TL;DR 「MethodHandle Aからの戻り値 -&gt; MethodHandle Bの引数」という形の合成は、MethodHandles.filterReturnValueを使えば実現できる docs.oracle.com やること 「Method Aを呼び出し、その結果をMethod Bに渡す」というような場合、従来のリフレクションではそれぞれのMethodを個別に呼び出す必要が有りました。 一方、MethodHandleの場合、それぞれのMethodHandleを合成することができます。 これによって呼び出しに関する記述が簡略化します。 また、手元で軽くJMHベンチマークを取った限り…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwrongwrong163377.hatenablog.com%2Fentry%2F2025%2F05%2F10%2F220837&quot; title=&quot;【Java】MethodHandleを合成する - wrongwrongな開発日記&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>2025-05-10 22:08:37</published>
  <title>【Java】MethodHandleを合成する</title>
  <type>rich</type>
  <url>https://wrongwrong163377.hatenablog.com/entry/2025/05/10/220837</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
