Skip to content

Commit

Permalink
Fix Generic Class Diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Merk committed Nov 8, 2023
1 parent 57e04a7 commit 6e641ff
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions docs/additional-material/daniel-java2/sample-exam.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ classDiagram
<<record>>
-name String
-universe Universe
-members Map~T&#44&#160Boolean~
-members Map~T&sbquo; Boolean~
+addSuperHuman(t T) void
+getMostPowerfulSuperHuman() Optional~T~
+getAllAvailableSuperHumans() List~T~
Expand Down Expand Up @@ -196,7 +196,7 @@ classDiagram
<<record>>
-name String
-universe Universe
-members Map~T&#44&#160Boolean~
-members Map~T&sbquo; Boolean~
+addSuperHuman(t T) void
+getMostPowerfulSuperHuman() Optional~T~
+getAllAvailableSuperHumans() List~T~
Expand Down
4 changes: 2 additions & 2 deletions docs/additional-material/steffen.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ classDiagram
+q1() Phone~Car~
+q2() OptionalDouble
+q3(maxPrice: double) List~Phone~
+q4() Map~String&#44&#160Phone~
+q5() Map~String&#44&#160List~Phone~~
+q4() Map~String&sbquo; Phone~
+q5() Map~String&sbquo; List~Phone~~
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/exam-exercises/exam-exercises-java2/corner-shop.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ classDiagram
class CornerShop {
<<record>>
-name String
-store Map~Goods&#44&#160Integer~
-store Map~Goods&sbquo; Integer~
+getAmountByDescription(description String) Optional~Integer~
+buyGoods(goods Goods, amount int) void
+sellGoods(goods Goods, amount int) void
Expand Down
2 changes: 1 addition & 1 deletion docs/exam-exercises/exam-exercises-java2/dictionary.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ classDiagram
<<record>>
-sourceLanguage Language
-targetLanguage Language
-entries Map~Word&#44&#160Word~
-entries Map~Word&sbquo; Word~
+addEntry(sourceWord Word, targetWord Word) void
+importEntries(file File) void
+getTranslation(word String) Optional~String~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ classDiagram
class HumanResources {
<<record>>
+telephoneBook Map~TelephoneNumber&#44&#160Person~
+telephoneBook Map~TelephoneNumber&sbquo; Person~
+staff List~Person~
+addTelephoneNumber(telephoneNumber TelephoneNumber, person Person) void
+addStaff(person Person) void
Expand Down
2 changes: 1 addition & 1 deletion docs/exam-exercises/exam-exercises-java2/library.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classDiagram
class Library {
<<record>>
-name String
-books Map~Book&#44&#160Status~
-books Map~Book&sbquo; Status~
+addBook(book Book) void
+getBookByTitle(title String) Optional~Book~
+getPaperBooksByStatus(status Status) List~PaperBook~
Expand Down
4 changes: 2 additions & 2 deletions docs/exam-exercises/exam-exercises-java2/phone-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ classDiagram
+query1() List~Phone~
+query2() OptionalDouble
+query3(maxPriceInEuro double) List~Phone~
+query4() Map~Phone&#44&#160String~
+query5() Map~ConnectionTyp&#44&#160List~Phone~~
+query4() Map~Phone&sbquo; String~
+query5() Map~ConnectionTyp&sbquo; List~Phone~~
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/exam-exercises/exam-exercises-java2/space-station.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ classDiagram
class SpaceStation {
<<record>>
-name String
-bays Map~Integer&#44&#160SpaceFighter~
-bays Map~Integer&sbquo; SpaceFighter~
+land(bayNumber Integer, spaceFighter SpaceFighter) void
+getFastestSpaceFighter() Optional~SpaceFighter~
}
Expand Down
4 changes: 2 additions & 2 deletions docs/exercises/java-stream-api/java-stream-api01.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ classDiagram
+getNumberOfConsolesFromNintendo() long
+getSoldUnitsInMillionsPerYearFromAllOutdatedConsoles() List~String~
+getAverageSoldUnitsInMillionsPerYearFromAllOutdatedConsoles() OptionalDouble
+getAllConsolesByMaker() Map~Maker&#44&#160List~Console~~
+getTotalSoldUnitsInMillionsPerMaker() Map~Maker&#44&#160Double~
+getAllConsolesByMaker() Map~Maker&sbquo; List~Console~~
+getTotalSoldUnitsInMillionsPerMaker() Map~Maker&sbquo; Double~
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/exercises/java-stream-api/java-stream-api02.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ classDiagram
+getNameOfVfLWolfsburgFootballerWithMostPlayedGames() Optional~Footballer~
+getNamesOfAllFootballClubs() List~FootballClub~
+isFootballerWithSizeInCmLT170AndNumberOfGoalsBT0() boolean
+getAllFootballersByBirthyear() Map~Integer&#44&#160List~Footballer~~
+getAllFootballersByBirthyear() Map~Integer&sbquo; List~Footballer~~
+getAverageNumberOfPointsFromAllBundesligaFootballClubs() OptionalDouble
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/exercises/maps/maps01.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classDiagram
class TelephoneBook {
<<record>>
-entries Map~Person&#44&#160TelephoneNumber~
-entries Map~Person&sbquo; TelephoneNumber~
+addEntry(person Person, telephoneNumber TelephoneNumber) void
+getTelephoneNumberByName(name String) TelephoneNumber
}
Expand Down
2 changes: 1 addition & 1 deletion docs/exercises/maps/maps02.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classDiagram
class BookCollection {
<<record>>
-collection Map~Author&#44&#160List~Book~~
-collection Map~Author&sbquo; List~Book~~
+addAuthor(author Author) void
+addBook(author Author, book Book) void
+getMostDiligentAuthor() Author
Expand Down
2 changes: 1 addition & 1 deletion docs/exercises/optionals/optionals01.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classDiagram
class BookCollection {
<<record>>
-collection Map~Author&#44&#160List~Book~~
-collection Map~Author&sbquo; List~Book~~
+addAuthor(author Author) void
+addBook(author Author, book Book) void
+getMostDiligentAuthor() Optional~Author~
Expand Down
2 changes: 1 addition & 1 deletion docs/exercises/optionals/optionals02.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classDiagram
class TelephoneBook {
<<record>>
-entries Map~Person&#44&#160TelephoneNumber~
-entries Map~Person&sbquo; TelephoneNumber~
+addEntry(person Person, telephoneNumber TelephoneNumber) void
+getTelephoneNumberByName(name String) Optional~TelephoneNumber~
}
Expand Down
2 changes: 1 addition & 1 deletion docs/exercises/unit-tests/unit-tests03.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classDiagram
class TelephoneBook {
<<record>>
-entries Map~Person&#44&#160TelephoneNumber~
-entries Map~Person&sbquo; TelephoneNumber~
+addEntry(person Person, telephoneNumber TelephoneNumber) void
+getTelephoneNumberByName(name String) Optional~TelephoneNumber~
}
Expand Down
2 changes: 1 addition & 1 deletion docs/exercises/unit-tests/unit-tests04.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classDiagram
class BookCollection {
<<record>>
-collection Map~Author&#44&#160List~Book~~
-collection Map~Author&sbquo; List~Book~~
+addAuthor(author Author) void
+addBook(author Author, book Book) void
+getMostDiligentAuthor() Optional~Author~
Expand Down

0 comments on commit 6e641ff

Please sign in to comment.