<?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>はじめに Java8 Stream での任意順序ソート 未知のキーを末尾に持ってくる はじめに 以下のような Item を top -&gt; middle -&gt; bottom の順序でソートしたい。 List&lt;Item&gt; list = Arrays.asList( new Item(1, &quot;bottom&quot;), new Item(2, &quot;top&quot;), new Item(3, &quot;middle&quot;), new Item(4, &quot;top&quot;)); 第2ソートキーを id とすると、Guava では ComparisonChain で Ordering.explicit() を指定することとなる。 Compar…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F2021%2F10%2F17%2F090000&quot; title=&quot;Java Stream を任意順序でソートする - 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>https://m.media-amazon.com/images/I/41aZ-lQtWmL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-17 09:00:00</published>
  <title>Java Stream を任意順序でソートする</title>
  <type>rich</type>
  <url>https://blog1.mammb.com/entry/2021/10/17/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
