<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>posturan</author_name>
  <author_url>https://blog.hatena.ne.jp/posturan/</author_url>
  <blog_title>Oboe吹きプログラマの黙示録</blog_title>
  <blog_url>https://oboe2uran.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>Java の enum 使用でよく列挙名と共にコード値を定義して使用したりする設計は 常套手段の１つである。 public enum Frame { Gold(101), Silver(101), Bronz(102); private int value; private Frame(int value) { this.value = value; } public int getValue(){ return value; } } よくあるパターンである。 列挙型の並び、（ 0始まり、つまり序数＝０）は、ordinal() で取得するが、上のように 抱えるコード値取得メソッドは各 enum…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2021%2F03%2F13%2F213506&quot; title=&quot;コンストラクタで値を抱える enum 列挙型の汎用インターフェース - Oboe吹きプログラマの黙示録&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>2021-03-13 21:35:06</published>
  <title>コンストラクタで値を抱える enum 列挙型の汎用インターフェース</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2021/03/13/213506</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
