<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>taedium</author_name>
  <author_url>https://blog.hatena.ne.jp/taedium/</author_url>
  <blog_title>taediumの日記</blog_title>
  <blog_url>https://taedium.hatenadiary.org/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>下のエントリにつづいてもう1つジェネリクスねた。上限境界と下限境界を持つワイルドカードはおもしろいなぁと思いました。 ? super を使ってパラメータ化された型はObjectしか返せないと思っていたのですが、その型の上限があらかじめ決まっているならその型で戻せるんですね（下のサンプルコードで言えばBクラスとして戻せるということ）。 public class BoundsTest { @Test public void testBounded() throws Exception { BoundedHolder&lt;? super C&gt; holder = new BoundedHolder&lt;C&gt;(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaedium.hatenadiary.org%2Fentry%2F20090317%2Fp2&quot; title=&quot; 上限境界を持つジェネリック型の実型パラメータに下限境界のワイルドカードを指定したとき - taediumの日記&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>2009-03-17 00:00:00</published>
  <title> 上限境界を持つジェネリック型の実型パラメータに下限境界のワイルドカードを指定したとき</title>
  <type>rich</type>
  <url>https://taedium.hatenadiary.org/entry/20090317/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
