<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>daisuke-m</author_name>
  <author_url>https://blog.hatena.ne.jp/daisuke-m/</author_url>
  <blog_title>都元ダイスケ IT-PRESS</blog_title>
  <blog_url>https://daisuke-m.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>なーーんか、なんとなく思い出して引っ張ってきたエントリ。「Mapなんだけど、getした時に絶対nullが返ってきて欲しくないんだよねー。」という実装が欲しくなった時のお話。 Map&lt;String, String&gt; foo = new HashMap&lt;String, String&gt;() { @Override public String get(String key) { String result = super.get(key); return result == null ? &quot;&quot; : result; } }; Bar.baz(foo); ジェネリクス使ったメソッドのオーバーライド - 都…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaisuke-m.hatenablog.com%2Fentry%2F20080710%2F1215708136&quot; title=&quot;仕様違反実装をしない様に - 都元ダイスケ IT-PRESS&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>2008-07-10 01:42:16</published>
  <title>仕様違反実装をしない様に</title>
  <type>rich</type>
  <url>https://daisuke-m.hatenablog.com/entry/20080710/1215708136</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
