/
githubmirror
/
java-design-patterns
Обзор
Документация
Войти
/
githubmirror
/
java-design-patterns
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
factory-kit/etc/factory-kit.urm.puml
46 строк
897 B
Ilkka Seppälä
#1113 Add uml-reverse-mapper plugin
07 дек 2019, 19:03
07 дек 2019, 19:03
0685a50
Код
Авторство
О чём код?
@startuml package com.iluwatar.factorykit { class App { - LOGGER : Logger {static} + App() + main(args : String[]) {static} } class Axe { + Axe() + toString() : String } class Bow { + Bow() + toString() : String } interface Builder { + add(WeaponType, Supplier<Weapon>) {abstract} } class Spear { + Spear() + toString() : String } class Sword { + Sword() + toString() : String } interface Weapon { } interface WeaponFactory { + create(WeaponType) : Weapon {abstract} + factory(consumer : Consumer<Builder>) : WeaponFactory {static} } enum WeaponType { + AXE {static} + BOW {static} + SPEAR {static} + SWORD {static} + valueOf(name : String) : WeaponType {static} + values() : WeaponType[] {static} } } Axe ..|> Weapon Bow ..|> Weapon Spear ..|> Weapon Sword ..|> Weapon @enduml