<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohhoy</author_name>
  <author_url>https://blog.hatena.ne.jp/yohhoy/</author_url>
  <blog_title>yohhoyの日記</blog_title>
  <blog_url>https://yohhoy.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>Java言語のジェネリクス(generics)では、型推論過程において無限型(infinite type)が推論されうる。ただしJava言語では無限型を表現できないため、非境界ワイルドカード(unbounded wildcard) &lt;?&gt; を用いた再帰型(recursive type)で代替される。下記コードの条件演算子(?:)を用いた条件式★において、オペランド型 List&lt;Integer&gt; および List&lt;Double&gt; から式全体の型推論が行われる。このとき推論される型は lub(List&lt;Integer&gt;, List&lt;Double&gt;) = List&lt;Number &amp; Comparab…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20160913%2Fp1&quot; title=&quot;型推論と無限型(infinite type) - yohhoyの日記&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-09-13 00:00:00</published>
  <title>型推論と無限型(infinite type)</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20160913/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
