Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
Didier Plaindoux edited this page Sep 21, 2021 · 43 revisions

In this document we cover problematic linked to structural decomposition done using Pattern Matching.

Basic Cases, Capture and Conditional

In addition matching can be done with conditionals. Then matching case can be specialized using predicates.

Matching core Java objects

Complex cases for XML and POJOs

Ad-Hoc cases: Design on demand

A description explaining how case class is designed is given in the Case class design.

Pattern Matching in action: Akka event handler

Using this mechanism Akka actors receiver can be done easily for Java implementation of course since Scala already provides case class paradigm in the language.