mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-14 12:16:46 +00:00
#631 - Partial Response : Modified puml digram
This commit is contained in:
1 parent
711f3faf67
commit
fb3a998c04
1 file changed
+6
@@ -2,6 +2,7 @@
|
|||||||
package com.iluwatar.partialresponse {
|
package com.iluwatar.partialresponse {
|
||||||
class FieldJsonMapper {
|
class FieldJsonMapper {
|
||||||
+ FieldJsonMapper()
|
+ FieldJsonMapper()
|
||||||
|
- getString(video : Video, declaredField : Field) : String
|
||||||
+ toJson(video : Video, fields : String[]) : String
|
+ toJson(video : Video, fields : String[]) : String
|
||||||
}
|
}
|
||||||
class Video {
|
class Video {
|
||||||
@@ -14,6 +15,11 @@ package com.iluwatar.partialresponse {
|
|||||||
+ Video(id : Integer, title : String, length : Integer, description : String, director : String, language : String)
|
+ Video(id : Integer, title : String, length : Integer, description : String, director : String, language : String)
|
||||||
+ toString() : String
|
+ toString() : String
|
||||||
}
|
}
|
||||||
|
class VideoClientApp {
|
||||||
|
- LOGGER : Logger {static}
|
||||||
|
+ VideoClientApp()
|
||||||
|
+ main(args : String[]) {static}
|
||||||
|
}
|
||||||
class VideoResource {
|
class VideoResource {
|
||||||
- fieldJsonMapper : FieldJsonMapper
|
- fieldJsonMapper : FieldJsonMapper
|
||||||
- videos : Map<Integer, Video>
|
- videos : Map<Integer, Video>
|
||||||
|
|||||||
Reference in new issue
Block a user