mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 14:14:57 +00:00
#1113 Add uml-reverse-mapper plugin
This commit is contained in:
1 parent
55769e9841
commit
0685a505d3
140 files changed
+7753
No files matched your search
@@ -0,0 +1,36 @@
|
||||
@startuml
|
||||
package com.iluwatar.privateclassdata {
|
||||
class App {
|
||||
+ App()
|
||||
+ main(args : String[]) {static}
|
||||
}
|
||||
class ImmutableStew {
|
||||
- LOGGER : Logger {static}
|
||||
- data : StewData
|
||||
+ ImmutableStew(numPotatoes : int, numCarrots : int, numMeat : int, numPeppers : int)
|
||||
+ mix()
|
||||
}
|
||||
class Stew {
|
||||
- LOGGER : Logger {static}
|
||||
- numCarrots : int
|
||||
- numMeat : int
|
||||
- numPeppers : int
|
||||
- numPotatoes : int
|
||||
+ Stew(numPotatoes : int, numCarrots : int, numMeat : int, numPeppers : int)
|
||||
+ mix()
|
||||
+ taste()
|
||||
}
|
||||
class StewData {
|
||||
- numCarrots : int
|
||||
- numMeat : int
|
||||
- numPeppers : int
|
||||
- numPotatoes : int
|
||||
+ StewData(numPotatoes : int, numCarrots : int, numMeat : int, numPeppers : int)
|
||||
+ getNumCarrots() : int
|
||||
+ getNumMeat() : int
|
||||
+ getNumPeppers() : int
|
||||
+ getNumPotatoes() : int
|
||||
}
|
||||
}
|
||||
ImmutableStew --> "-data" StewData
|
||||
@enduml
|
||||
Reference in new issue
Block a user