![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设计模式
jh0712
这个作者很懒,什么都没留下…
展开
-
设计模式学习JAVA(一)概总
参考链接:http://www.runoob.com/design-pattern/design-pattern-intro.html 把最近学习的设计模式总结一下。2019.1.8,先从创建型开始,目前学习到迭代器模式 一、设计模式分类 根据设计模式的参考书 Design Patterns - Elements of Reusable Object-Oriented Software(中文...转载 2019-01-08 11:44:32 · 114 阅读 · 0 评论 -
设计模式学习JAVA(二)创建型模式-——单例模式
参考:http://www.runoob.com/design-pattern/singleton-pattern.html 代码仓库:https://github.com/jianghan0712/design-pattern 一、综述 单例模式(Singleton Pattern)是 Java 中最简单的设计模式之一,也是相当常用的创造模式之一。它能保证在对象生命周期中,只存在单个对象的...原创 2019-01-08 17:30:49 · 114 阅读 · 0 评论 -
设计模式学习JAVA(四)创建性模式——原型模式
参考链接:http://www.runoob.com/design-pattern/prototype-pattern.html 示例代码:https://github.com/jianghan0712/design-pattern 一、综述 所谓原型模式,就是在在一个频繁创建同一个对象实体的系统中,因为频繁的构建相同的实体,很繁琐,所以通过原型的“自我复制”,来达到创建对象...原创 2019-01-09 18:07:16 · 90 阅读 · 0 评论 -
设计模式学习JAVA(三)创建性模式——简单工厂/抽象工厂
参考链接:http://www.runoob.com/design-pattern/abstract-factory-pattern.html 示例代码:https://github.com/jianghan0712/design-pattern 目录 简单工厂 一、综述 二、主要思想 三、示例UML 四、示例代码 五、总结 抽象工厂 一、综述 二、主要思想 三、示例...原创 2019-01-09 16:31:13 · 129 阅读 · 0 评论