<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Nagise</author_name>
  <author_url>https://blog.hatena.ne.jp/Nagise/</author_url>
  <blog_title>プログラマーの脳みそ</blog_title>
  <blog_url>https://nagise.hatenablog.jp/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Generics</anon>
  </categories>
  <description>Javaのジェネリクスについて考察するのに丁度良いテーマを見つけたので忘れないうちに書いておく。Map を Mapに変換するメソッドを作るという話題。 public static &lt;K,V&gt; Map&lt;V,K&gt; swap1(Map&lt;K,V&gt; origin) { // 略 } 単にMapからMapに変換するなら上記のようなメソッドシグネチャでよい。ここで、Mapの具象型を帰すようにしたいとする。 public static &lt;K,V, R extends Map&lt;V,K&gt;, P extends Map&lt;K,V&gt;&gt; R swap2(P origin, Supplier&lt;R&gt; supplier) { …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnagise.hatenablog.jp%2Fentry%2F20150212%2F1423752451&quot; title=&quot; Mapの置換にみるジェネリクス表現 - プログラマーの脳みそ&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>2015-02-12 23:47:31</published>
  <title> Mapの置換にみるジェネリクス表現</title>
  <type>rich</type>
  <url>https://nagise.hatenablog.jp/entry/20150212/1423752451</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
