<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>irof</author_name>
  <author_url>https://blog.hatena.ne.jp/irof/</author_url>
  <blog_title>日々常々</blog_title>
  <blog_url>https://irof.hateblo.jp/</blog_url>
  <categories>
    <anon>Java8</anon>
  </categories>
  <description>4年前に書いたリストを項目ごとに集計するというエントリを見つけたので、なんとなく今風にStream使って書いてみた。 Collection&lt;Output&gt; summary(List&lt;Input&gt; data) { return data -&gt; { Map&lt;String, List&lt;Input&gt;&gt; collected = data.stream() .collect(groupingBy(Input::getKey)); return collected.entrySet().stream() .map(e -&gt; new Output( e.getKey(), e.getValue().strea…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Firof.hateblo.jp%2Fentry%2F2015%2F05%2F03%2F143843&quot; title=&quot;リストを項目ごとに集計する - Java8ばーじょん - 日々常々&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>2015-05-03 14:38:43</published>
  <title>リストを項目ごとに集計する - Java8ばーじょん</title>
  <type>rich</type>
  <url>https://irof.hateblo.jp/entry/2015/05/03/143843</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
