JavaのStream APIってどう書くかよく調べなおしたりしません?
filter / map / collectの基本から、実務でよく使うパターンをシンプルに整理しました。
ループ処理との違いや可読性の考え方もまとめています。
同じように悩んだ方の参考になれば。
https://chun-log.jp/java-stream-api/?utm_source=mastodon&utm_medium=social&utm_campaign=post
JavaのStream APIってどう書くかよく調べなおしたりしません?
filter / map / collectの基本から、実務でよく使うパターンをシンプルに整理しました。
ループ処理との違いや可読性の考え方もまとめています。
同じように悩んだ方の参考になれば。
https://chun-log.jp/java-stream-api/?utm_source=mastodon&utm_medium=social&utm_campaign=post
Java Stream APIをfor文と比較【初心者向け】
https://qiita.com/w_pechi/items/27ca37ee66931f3a39b4?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
JEP 461, Stream Gatherers (Preview), has been completed for #JDK22.
This JEP proposes to enhance the #StreamAPI to support custom intermediate operations.
"This will allow stream pipelines to transform data in ways that are not easily achievable with the existing built-in intermediate operations."
More on #InfoQ: https://bit.ly/3NzNbuP
After its review concluded, JEP 461, Stream Gatherers (Preview), has been completed for JDK 22. This JEP proposes to enhance the Stream API to support custom intermediate operations. "This will allow stream pipelines to transform data in ways that are not easily achievable with the existing built-in intermediate operations."
> Stream api? 何かわからん
#StreamAPI のサーバー側はこんな #PHP コードでも機能するようです。
https://github.com/KEINOS/Dockerfile_of_HTTP-Stream-API/blob/master/src/router.php#L14-L27
上記は、接続すると 0-9 までをカウントアップするだけのストリーミング API です。
クライアント側の HTML はこんな感じ。
https://github.com/KEINOS/Dockerfile_of_HTTP-Stream-API/blob/master/client_local.html
何かのご参考になれば。