<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>speg03</author_name>
  <author_url>https://blog.hatena.ne.jp/speg03/</author_url>
  <blog_title>speg03の雑記帳</blog_title>
  <blog_url>https://speg03.hatenadiary.jp/</blog_url>
  <categories>
    <anon>java</anon>
  </categories>
  <description>そういや，そんなものもありました．staticフィールドの初期化に計算が必要で，後で変更する必要がない場合に使える．何かとMapで持っておきたいフィールドってあるよね． import java.util.*; class StaticInitialize { private final static Map&lt;String, String&gt; m = new HashMap&lt;String, String&gt;(); static { m.put(&quot;key1&quot;, &quot;value1&quot;); m.put(&quot;hello&quot;, &quot;world&quot;); m.put(&quot;foo&quot;, &quot;bar&quot;); } public stati…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fspeg03.hatenadiary.jp%2Fentry%2F20090227%2F1235718053&quot; title=&quot; static初期化ブロック - speg03の雑記帳&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>2009-02-27 16:00:53</published>
  <title> static初期化ブロック</title>
  <type>rich</type>
  <url>https://speg03.hatenadiary.jp/entry/20090227/1235718053</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
