streams: Java Stream API + Collectors cookbook module (creation, laziness and short-circuiting, intermediate/terminal ops, Collectors recipes and toMap traps, primitive stream overflow, parallel traps, Gatherers on JDK 25, loop-to-stream conversion), 12 contract tests

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b49nGy7tcEjVUa3WAA
This commit is contained in:
Claude
2026-11-24 05:52:24 +05:30
parent 9c2ae10d7f
commit 74da9cd899
28 changed files with 831 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
collection.stream() : [Alice, Bob, Carol]
Stream.of(1,2,3) : [1, 2, 3]
Arrays.stream(array) : [x, y, z]
IntStream.range(1,6) : [1, 2, 3, 4, 5]
IntStream.rangeClosed : [1, 2, 3, 4, 5]
Stream.iterate(0, n+2) : [0, 2, 4, 6, 8]
iterate(1, <100, *3) : [1, 3, 9, 27, 81]
Stream.generate(...) : [ab, ab, ab]
Stream.ofNullable(null) : []
Optional.stream() : [here]
"a,b,c".split(",") stream : [a, b, c]
"hey".chars() : [104, 101, 121]