<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hepokon365</author_name>
  <author_url>https://blog.hatena.ne.jp/hepokon365/</author_url>
  <blog_title>毎日へっぽこ</blog_title>
  <blog_url>https://hepokon365.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Kotlin</anon>
  </categories>
  <description>Kotlinの Iterable#chunked が便利だな～と思っていた矢先、JavaでListを複数のリストに分割する機会があった。 検索すると独自の実装方法が上位に出てくるが、たぶんCommons CollectionsかGuavaに用意されてるだろうと思ったら、両方にあったのでメモ。 Kotlinのchunked Javaでの実装 Guava Commons Collections4 振り返り Kotlinのchunked Iterable または Sequence の関数。引数として数値を取り、その要素数ごとに分割した List を返す。 Iterable#chunked の戻り値は…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhepokon365.hatenablog.com%2Fentry%2F2021%2F01%2F16%2F235520&quot; title=&quot;Kotlinのchunkedのように、Javaでサイズ/要素数によるList分割をするにはGuavaかCommons Collectionsを使えばいい - 毎日へっぽこ&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-01-16 23:55:20</published>
  <title>Kotlinのchunkedのように、Javaでサイズ/要素数によるList分割をするにはGuavaかCommons Collectionsを使えばいい</title>
  <type>rich</type>
  <url>https://hepokon365.hatenablog.com/entry/2021/01/16/235520</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
