~/talk

Java Streams: Beyond The Basics

Talkat Jfokus 2016 · 2016-02-08..02-10· [java]
slides:none on file

Covers practical JDK 8+ techniques: lambda type inference, avoiding eager work by using a logger supplier instead of building messages, and preferring stream operations over shared mutable state (don’t use LongAdder inside forEach; use mapToInt(...).sum()). Shows naive recursive and sort-based approaches for “longest line” replaced by reduce/max for longest line, explains files.lines memory‑map parallelism in JDK 9, Optional.stream, flatMapping collectors, and takeWhile/dropWhile caveats.

AI-written summary · about

  1. 0:00Introduction
  2. 1:48My background
  3. 2:30Recap
  4. 4:05Type Inference
  5. 6:31Functional Interface
  6. 11:06Stream Sources
  7. 13:18Delayed Execution
  8. 13:33Uncertainty Principle
  9. 15:03Suppliers
  10. 17:09Avoiding Loops
  11. 19:05Example
  12. 25:44Peek
  13. 26:39Side effects
  14. 27:27Exercise
  15. 34:37Streams Approach
  16. 36:50Reduce Method
  17. 38:06Max Method
  18. 38:45JDK 9 Updates
  19. 41:18Network Interface Updates
  20. 41:48Files Dot Lines
  21. 43:26Stream Take While
  22. 44:58Drop While
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.