<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yucatio</author_name>
  <author_url>https://blog.hatena.ne.jp/yucatio/</author_url>
  <blog_title>yucatio@システムエンジニア</blog_title>
  <blog_url>https://yucatio.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Enumのリストを宣言順に並び変えたいときには、自然順に並べるか、宣言順であることを明示したい場合はEnum.ordinal()を使用します。 Enum (Java SE 17 &amp; JDK 17) // Enumクラス public enum Element { FIRE, WATER, ELECTRRIC, POISON } List&lt;Element&gt; elements = List.of(Element.ELECTRRIC, Element.POISON, Element.WATER, Element.FIRE, Element.WATER, Element.POISON); List&lt;E…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyucatio.hatenablog.com%2Fentry%2F2024%2F02%2F11%2F162037&quot; title=&quot;Enumを宣言順に並び変える(ジェネリクス版) - yucatio@システムエンジニア&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>2024-02-11 16:20:37</published>
  <title>Enumを宣言順に並び変える(ジェネリクス版)</title>
  <type>rich</type>
  <url>https://yucatio.hatenablog.com/entry/2024/02/11/162037</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
