上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
摘要: Intent (定义) Decouple an abstraction from its implementation so that the two can vary independently. (从实现中分离出抽象,使两者可以独立变化) Also Known As (别名) Handle/Bo 阅读全文
posted @ 2022-05-19 11:45 伟衙内 阅读(40) 评论(0) 推荐(0)
摘要: Intent (定义) Convert the interface of a class into another interface clients expect. (将一个接口转换为客户端希望的另一个接口)Adapter lets classes work together that could 阅读全文
posted @ 2022-05-13 11:21 伟衙内 阅读(19) 评论(0) 推荐(0)
摘要: 观察者模式 有上面这个案例,也是我最近听到的一个案例,新浪天气和百度天气都是观察者,气象局如果有数据改变,那么调用notifyObserver通知其他观察者,然后其他观察者就可以进行改变。 疑问 这是一个很理想的状态,但是真实情况是,SinaWeather和BaiduWeather每隔一段时间去监听 阅读全文
posted @ 2022-05-12 20:32 伟衙内 阅读(30) 评论(0) 推荐(0)
摘要: Intent (定义) Ensure a class only has one instance, and provide a global point of access to it.(确保一个类只有一个实例,并提供全局访问的通道) Motivation (案例) How do we ensure 阅读全文
posted @ 2022-05-12 14:54 伟衙内 阅读(13) 评论(0) 推荐(0)
摘要: Intent (定义) Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.(指定使用原型实例创建的对象类型,并通 阅读全文
posted @ 2022-05-11 15:43 伟衙内 阅读(31) 评论(0) 推荐(0)
摘要: Intent (定义) Define an interface for creating an object(定义一个接口去创建对象), but let subclasses decide which class to instantiate.(但是由子类决定哪个类将被实例化) Factory Me 阅读全文
posted @ 2022-05-06 15:30 伟衙内 阅读(34) 评论(0) 推荐(0)
摘要: Intent (定义) Separate the construction of a complex object from its representation,so that the same construction process can create different represent 阅读全文
posted @ 2022-05-06 11:36 伟衙内 阅读(24) 评论(0) 推荐(0)
摘要: Intent (定义) Provide an interface for creating families of related or dependent objects without specifying their concrete classes. (提供一个接口去创建相关联或者依赖的对象 阅读全文
posted @ 2022-05-01 18:19 伟衙内 阅读(32) 评论(0) 推荐(0)
摘要: ​​​​​​design patterns elements of reusable object-oriented softwar_Java知识分享网-免费Java资源下载 整理了一下自己目前所理解的设计模式,然后再去看以前的视频温顾了下设计模式。 但是我发现,无论是以前看的视频,还是目前新找的设 阅读全文
posted @ 2022-05-01 16:44 伟衙内 阅读(18) 评论(0) 推荐(0)
摘要: 把做的笔记传给另一个人,发现他打开Md文件后竟然没有图片,我的天,本以为typora好用,但没有图片这是个硬伤啊! 总不能记笔记光有文字吧。 后来百度找到用gitee建仓库上传图片的方式。 gitee操作 首先先在gitee中新建仓库, 仓库中建立一个img目录,用于以后上传图片用的, 在设置中找到 阅读全文
posted @ 2022-04-07 16:23 伟衙内 阅读(29) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页