{"id":30618055,"url":"https://github.com/poneding/gof-java","last_synced_at":"2025-08-30T11:07:57.800Z","repository":{"id":309397385,"uuid":"1036144896","full_name":"poneding/gof-java","owner":"poneding","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-24T15:46:22.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-24T20:31:09.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/poneding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-11T16:12:43.000Z","updated_at":"2025-08-24T15:46:26.000Z","dependencies_parsed_at":"2025-08-11T18:22:06.226Z","dependency_job_id":"65fc41fa-4275-4ed9-be21-e4deff2a4100","html_url":"https://github.com/poneding/gof-java","commit_stats":null,"previous_names":["poneding/gof-java"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/poneding/gof-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fgof-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fgof-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fgof-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fgof-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poneding","download_url":"https://codeload.github.com/poneding/gof-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poneding%2Fgof-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272839742,"owners_count":25001869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-30T11:07:55.511Z","updated_at":"2025-08-30T11:07:57.773Z","avatar_url":"https://github.com/poneding.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 设计模式\n\nGoF（Gang of Four）设计模式是软件设计领域的经典模式，旨在解决软件设计中的常见问题。该项目实现了 GoF 设计模式的 Java 版本，涵盖了创建型、结构型和行为型三大类。\n\n## 设计原则\n\n- [SOLID 原则](./docs/SOLID原则.md)\n\n## 模式\n\n### 创建型（Creational）\n\n共有五种创建型设计模式，主要用于对象的创建。\n\n- [01. 单例模式（Singleton）](./docs/01_单例模式.md)\n- [02. 工厂方法模式（Factory Method）](./docs/04_工厂方法模式.md)\n- [03. 抽象工厂模式（Abstract Factory）](./docs/05_抽象工厂模式.md)\n- [04. 建造者模式（Builder）](./docs/03_建造者模式.md)\n- [05. 原型模式（Prototype）](./docs/02_原型模式.md)\n\n### 结构型（Structural）\n\n共有七种结构型设计模式，主要用于类和对象的组合。\n\n- [06. 适配器模式（Adaptor）](./docs/06_适配器模式.md)\n- [07. 桥接模式（Bridge）](./docs/07_桥接模式.md)\n- [08. 组合模式（Composite）](./docs/08_组合模式.md)\n- [09. 装饰器模式（Decorator）](./docs/09_装饰器模式.md)\n- [10. 外观模式（Facade）](./docs/10_外观模式.md)\n- [11. 享元模式（Flyweight）](./docs/12_享元模式.md)\n- [12. 代理模式（Proxy）](./docs/13_代理模式.md)\n\n### 行为型（Behavioral）\n\n共有十一种行为型设计模式，主要用于对象之间的通信。\n\n- [13. 责任链模式（Chain of Responsibility）](./docs/13_责任链模式.md)\n- [14. 命令模式（Command）](./docs/14_命令模式.md)\n- [15. 解释器模式（Interpreter）](./docs/15_解释器模式.md)\n- [16. 迭代器模式（Iterator）](./docs/16_迭代器模式.md)\n- [17. 中介者模式（Mediator）](./docs/17_中介者模式.md)\n- [18. 备忘录模式（Memento）](./docs/18_备忘录模式.md)\n- [19. 观察者模式（Observer）](./docs/19_观察者模式.md)\n- [20. 状态模式（State）](./docs/20_状态模式.md)\n- [21. 策略模式（Strategy）](./docs/21_策略模式.md)\n- [22. 模版方法模式（Template Method）](./docs/22_模版方法模式.md)\n- [23. 访问者模式（Visitor）](./docs/23_访问者模式.md)\n\n## UML\n\n- [UML 类图](./docs/UML类图.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponeding%2Fgof-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fponeding%2Fgof-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponeding%2Fgof-java/lists"}