<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xuwei</author_name>
  <author_url>https://blog.hatena.ne.jp/xuwei/</author_url>
  <blog_title>xuwei-k's blog</blog_title>
  <blog_url>https://xuwei-k.hatenablog.com/</blog_url>
  <categories>
    <anon>java</anon>
  </categories>
  <description>追記: はてぶのterazzoさんのコメントにあるように、単に public &lt;S, T extends S&gt; void assertEq(S a, T b){ } でいい気がする・・・orz はじめに、scalaz の assert_=== って書きましたが、Equal のインスタンスを要求しないので、かなり別のものです、すいません。(いい題が思いつかなかったので)目的としては、この assertEquals で、一つ目の引数と２つ目の引数の型が違ったらコンパイル時にエラーにしたいって話です。 それぞれ、プリミティブ型と、メッセージ書けるように引数3つのものがありますが、あとは (Objec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxuwei-k.hatenablog.com%2Fentry%2F20120604%2F1338787700&quot; title=&quot;Java で、 scalaz の assert_=== っぽいなにか - xuwei-k&amp;#39;s blog&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>2012-06-04 14:28:20</published>
  <title>Java で、 scalaz の assert_=== っぽいなにか</title>
  <type>rich</type>
  <url>https://xuwei-k.hatenablog.com/entry/20120604/1338787700</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
