Skip to content

Commit

Permalink
added pattern matching and sealed types
Browse files Browse the repository at this point in the history
  • Loading branch information
homberghp committed Jan 23, 2024
1 parent afaa746 commit 4a020c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/week99.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "99 Left Over"
description: "Pattern matching for Records"
date: 2024-01-22T10:31:29+02:00
draft: false
draft: true
images: []
slug: "j17-21"
menu:
Expand Down
1 change: 1 addition & 0 deletions topics/patternmatching.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ They provide a concise way to declare an _immutable_ class with the most common
Since the definition of records is quite strick, the compiler can do quite a few tricks, as will be shown below.

.Illustration record
[source,java]
----
record Person ( String fullName, LocalDate dob, String city, String country ){
}
Expand Down

0 comments on commit 4a020c8

Please sign in to comment.