/
githubmirror
/
java-design-patterns
Обзор
Документация
Войти
/
githubmirror
/
java-design-patterns
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
null-object/etc/null-object.urm.puml
41 строка
916 B
Ilkka Seppälä
#1113 Add uml-reverse-mapper plugin
07 дек 2019, 19:03
07 дек 2019, 19:03
0685a50
Код
Авторство
О чём код?
@startuml package com.iluwatar.nullobject { class App { + App() + main(args : String[]) {static} } interface Node { + getLeft() : Node {abstract} + getName() : String {abstract} + getRight() : Node {abstract} + getTreeSize() : int {abstract} + walk() {abstract} } class NodeImpl { - LOGGER : Logger {static} - left : Node - name : String - right : Node + NodeImpl(name : String, left : Node, right : Node) + getLeft() : Node + getName() : String + getRight() : Node + getTreeSize() : int + walk() } class NullNode { - instance : NullNode {static} - NullNode() + getInstance() : NullNode {static} + getLeft() : Node + getName() : String + getRight() : Node + getTreeSize() : int + walk() } } NullNode --> "-instance" NullNode NodeImpl --> "-left" Node NodeImpl ..|> Node NullNode ..|> Node @enduml