<?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>総称型のインスタンスを与える場合、当たり前だが総称型のクラスは認識できる。 public class Some&lt;T&gt; { private Class&lt;T&gt; genericClass; public Some(T t) { genericClass = t.getClass(); } このようにコンストラクタで T インスタンスを渡すのではなく、渡さずに genericClass を求めたい。 つまり、 Some&lt;Foo&gt; some = new Some&lt;&gt;(); でも、総称型のクラスを、Some 内部だけの実行範囲で認識したい。（めちゃくちゃな要求だとは思う）可変長引数のコンストラクタにするこ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2021%2F07%2F09%2F125021&quot; title=&quot;総称型のクラスを認識する - 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>2021-07-09 12:50:21</published>
  <title>総称型のクラスを認識する</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2021/07/09/125021</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
