<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Naotsugu</author_name>
  <author_url>https://blog.hatena.ne.jp/Naotsugu/</author_url>
  <blog_title>A Memorandum</blog_title>
  <blog_url>https://blog1.mammb.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>enum を enum 名から取得するのは public enum Status { RUN, WAIT, READY } valueOf を使えば良いだけです。 Status.valueOf(&quot;RUN&quot;); enum 定数としてコード値などと対応付ける こんな場合、 public enum Status { RUN(&quot;001&quot;), WAIT(&quot;010&quot;), READY(&quot;011&quot;), ; private final String code; private Status(final String code) { this.code = code; } public String getCod…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F20110212%2F1297538188&quot; title=&quot;enum 定数の逆引きは美しくないけどよく使う。。 - A Memorandum&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>2011-02-12 04:16:28</published>
  <title>enum 定数の逆引きは美しくないけどよく使う。。</title>
  <type>rich</type>
  <url>https://blog1.mammb.com/entry/20110212/1297538188</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
