~/talk

The Art of Java Language Pattern Matching

Talkat jPrime 2024 · 2024-05-28..05-29· [java]
slides:none on file

Covers how Java now binds type tests and extracts components: pattern matching for instanceof (added in JDK 14), pattern matching for switch with exhaustiveness checks and a guarded 'when' pattern, and deconstruction via record patterns plus composable nested extraction. Shows unnamed pattern underscore (_) and local-var inference to reduce clutter, explains sealed types making switches exhaustive, and notes primitives landed in pattern contexts (JDK 23) and unnamed patterns (JDK 20), with examples and scoping rules.

AI-written summary · about

  1. 0:00Introduction to Java Pattern Matching
  2. 3:37Pattern Matching Basics
  3. 5:02Switch Expressions
  4. 10:21Records and Sealed Classes
  5. 17:33Instanceof Pattern Matching
  6. 26:11Pattern Matching in Switch
  7. 37:09Record Patterns
  8. 43:55Primitive Type Patterns
  9. 46:42Summary and Future Features
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.