-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from homberghp/main
Corrected typos, dates and versions in the index, setup and tips.
- Loading branch information
Showing
49 changed files
with
1,672 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ node_modules | |
**/target | ||
|
||
**/.vscode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: "99 Left Over" | ||
description: "Pattern matching for Records" | ||
date: 2024-01-22T10:31:29+02:00 | ||
draft: true | ||
images: [] | ||
slug: "j17-21" | ||
menu: | ||
docs: | ||
parent: "" | ||
weight: 110 | ||
toc: true | ||
:stem: latexmath | ||
|
||
--- | ||
// added images and show how to include source code and latex | ||
|
||
include::{topics}/instanceof.adoc[] | ||
|
||
include::{topics}/patternmatching.adoc[] | ||
|
||
include::{topics}/switchexpressions.adoc[] | ||
|
||
include::{topics}/sealedtypes.adoc[] | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,232 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<diagram program="umlet" version="15.1"> | ||
<zoom_level>10</zoom_level> | ||
<element> | ||
<id>UMLClass</id> | ||
<coordinates> | ||
<x>480</x> | ||
<y>70</y> | ||
<w>320</w> | ||
<h>130</h> | ||
</coordinates> | ||
<panel_attributes>*<<sealed interface>>* | ||
template=S | ||
/BasicShape/ | ||
-- | ||
+ area(): double | ||
+ compareTo( other: BasicShape): int | ||
bg=#ccffcc</panel_attributes> | ||
<additional_attributes/> | ||
</element> | ||
<element> | ||
<id>UMLClass</id> | ||
<coordinates> | ||
<x>500</x> | ||
<y>250</y> | ||
<w>170</w> | ||
<h>90</h> | ||
</coordinates> | ||
<panel_attributes>{record} | ||
Circle | ||
-- | ||
- center: BasicPoint | ||
- radius: double | ||
--</panel_attributes> | ||
<additional_attributes/> | ||
</element> | ||
<element> | ||
<id>UMLClass</id> | ||
<coordinates> | ||
<x>50</x> | ||
<y>80</y> | ||
<w>280</w> | ||
<h>140</h> | ||
</coordinates> | ||
<panel_attributes>{record} | ||
BasicPoint | ||
-- | ||
- x: double | ||
- y: double | ||
-- | ||
+ distancle(other BasicPoint): double</panel_attributes> | ||
<additional_attributes/> | ||
</element> | ||
<element> | ||
<id>UMLClass</id> | ||
<coordinates> | ||
<x>510</x> | ||
<y>360</y> | ||
<w>250</w> | ||
<h>70</h> | ||
</coordinates> | ||
<panel_attributes>{record} | ||
Rectangle | ||
-- | ||
- topLeft, bottomRight: BasicPoint</panel_attributes> | ||
<additional_attributes/> | ||
</element> | ||
<element> | ||
<id>UMLClass</id> | ||
<coordinates> | ||
<x>630</x> | ||
<y>470</y> | ||
<w>210</w> | ||
<h>50</h> | ||
</coordinates> | ||
<panel_attributes>Triangle | ||
-- | ||
- a,b,c: BasicPoint</panel_attributes> | ||
<additional_attributes/> | ||
</element> | ||
<element> | ||
<id>Relation</id> | ||
<coordinates> | ||
<x>510</x> | ||
<y>190</y> | ||
<w>30</w> | ||
<h>80</h> | ||
</coordinates> | ||
<panel_attributes>lt=<<.</panel_attributes> | ||
<additional_attributes>10.0;10.0;10.0;60.0</additional_attributes> | ||
</element> | ||
<element> | ||
<id>Relation</id> | ||
<coordinates> | ||
<x>320</x> | ||
<y>110</y> | ||
<w>180</w> | ||
<h>40</h> | ||
</coordinates> | ||
<panel_attributes>lt=<. | ||
<uses></panel_attributes> | ||
<additional_attributes>10.0;20.0;160.0;20.0</additional_attributes> | ||
</element> | ||
<element> | ||
<id>Relation</id> | ||
<coordinates> | ||
<x>320</x> | ||
<y>150</y> | ||
<w>200</w> | ||
<h>150</h> | ||
</coordinates> | ||
<panel_attributes>lt=<- | ||
<contains> | ||
m1=1 | ||
m2=1 | ||
</panel_attributes> | ||
<additional_attributes>10.0;10.0;70.0;10.0;110.0;120.0;180.0;120.0</additional_attributes> | ||
</element> | ||
<element> | ||
<id>Relation</id> | ||
<coordinates> | ||
<x>320</x> | ||
<y>170</y> | ||
<w>210</w> | ||
<h>260</h> | ||
</coordinates> | ||
<panel_attributes>lt=<- | ||
<contains> | ||
m1=2 | ||
m2=1 | ||
</panel_attributes> | ||
<additional_attributes>10.0;10.0;60.0;10.0;110.0;230.0;190.0;230.0</additional_attributes> | ||
</element> | ||
<element> | ||
<id>Relation</id> | ||
<coordinates> | ||
<x>320</x> | ||
<y>200</y> | ||
<w>330</w> | ||
<h>320</h> | ||
</coordinates> | ||
<panel_attributes>lt=<- | ||
<contains> | ||
m1=3 | ||
m2=1 | ||
</panel_attributes> | ||
<additional_attributes>10.0;10.0;50.0;10.0;110.0;290.0;310.0;290.0</additional_attributes> | ||
</element> | ||
<element> | ||
<id>Relation</id> | ||
<coordinates> | ||
<x>620</x> | ||
<y>190</y> | ||
<w>100</w> | ||
<h>190</h> | ||
</coordinates> | ||
<panel_attributes>lt=<<.</panel_attributes> | ||
<additional_attributes>10.0;10.0;10.0;50.0;80.0;50.0;80.0;170.0</additional_attributes> | ||
</element> | ||
<element> | ||
<id>Relation</id> | ||
<coordinates> | ||
<x>710</x> | ||
<y>190</y> | ||
<w>110</w> | ||
<h>300</h> | ||
</coordinates> | ||
<panel_attributes>lt=<<.</panel_attributes> | ||
<additional_attributes>10.0;10.0;10.0;40.0;90.0;40.0;90.0;280.0</additional_attributes> | ||
</element> | ||
<element> | ||
<id>Relation</id> | ||
<coordinates> | ||
<x>770</x> | ||
<y>130</y> | ||
<w>220</w> | ||
<h>380</h> | ||
</coordinates> | ||
<panel_attributes>lt=->>> | ||
permits v | ||
fg=#008800 | ||
lw=2 | ||
</panel_attributes> | ||
<additional_attributes>10.0;10.0;130.0;10.0;130.0;360.0;70.0;360.0</additional_attributes> | ||
</element> | ||
<element> | ||
<id>Relation</id> | ||
<coordinates> | ||
<x>660</x> | ||
<y>130</y> | ||
<w>190</w> | ||
<h>160</h> | ||
</coordinates> | ||
<panel_attributes>lt=->>> | ||
fg=#008800 | ||
lw=2 | ||
|
||
</panel_attributes> | ||
<additional_attributes>120.0;10.0;170.0;10.0;170.0;130.0;10.0;130.0</additional_attributes> | ||
</element> | ||
<element> | ||
<id>Relation</id> | ||
<coordinates> | ||
<x>750</x> | ||
<y>130</y> | ||
<w>140</w> | ||
<h>270</h> | ||
</coordinates> | ||
<panel_attributes>lt=->>> | ||
fg=#008800 | ||
lw=2 | ||
</panel_attributes> | ||
<additional_attributes>30.0;10.0;120.0;10.0;120.0;250.0;10.0;250.0</additional_attributes> | ||
</element> | ||
<element> | ||
<id>UMLNote</id> | ||
<coordinates> | ||
<x>30</x> | ||
<y>270</y> | ||
<w>340</w> | ||
<h>120</h> | ||
</coordinates> | ||
<panel_attributes>The interface BasicShape permits | ||
implementations Circle, Rectangle, | ||
and Triangle. | ||
|
||
Note that 'permits' has no | ||
icon in UML. We used a closed triangle here. | ||
</panel_attributes> | ||
<additional_attributes/> | ||
</element> | ||
</diagram> |
Oops, something went wrong.