<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kunst1080</author_name>
  <author_url>https://blog.hatena.ne.jp/kunst1080/</author_url>
  <blog_title>くんすとの備忘録</blog_title>
  <blog_url>https://kunst1080.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>Javaを書いてて、 Map&lt;String, String&gt; hogehogeMap = new HashMap&lt;String,String&gt;(); hogehogeMap .put(&quot;hoge&quot;, &quot;fuga&quot;); hogehogeMap .put(&quot;hoehoe&quot;, &quot;fugafuga&quot;); みたいなのを沢山書くのが超絶面倒だったので作っちゃいました。 Mapリテラル お好きなパッケージ(自分は「literal」にしてみました)に突っ込んで、以下のように使います。 Map&lt;String,String&gt; h = literal.M .put(&quot;1&quot;, &quot;fugafuga&quot;) .put(&quot;2&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkunst1080.hatenablog.com%2Fentry%2F2013%2F12%2F07%2F162528&quot; title=&quot;【Java】型安全な(Map|List)リテラルのようなものを実装してみた - くんすとの備忘録&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>2013-12-07 16:25:28</published>
  <title>【Java】型安全な(Map|List)リテラルのようなものを実装してみた</title>
  <type>rich</type>
  <url>https://kunst1080.hatenablog.com/entry/2013/12/07/162528</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
