设计模式之适配器模式
来源:互联网 发布:ubuntu fcitx 配置 编辑:程序博客网 时间:2024/06/05 00:57
一 adapter
uml图
二 类适配器
public class Adapter extends Adaptee implements Target { @Override public void handleReq() { super.request(); } }
三 对象适配器
public class Adapter2 implements Target { private Adaptee adaptee; @Override public void handleReq() { adaptee.request(); } public Adapter2(Adaptee adaptee) { super(); this.adaptee = adaptee; }}
阅读全文
0 0
- 设计模式之适配器
- 设计模式之适配器
- 设计模式之适配器
- 设计模式之适配器
- 设计模式 之 适配器
- 设计模式 之 适配器
- 设计模式之适配器
- 设计模式之适配器
- 设计模式之适配器
- 设计模式之适配器
- 设计模式之适配器
- 设计模式 之 适配器模式
- 设计模式之适配器模式
- 设计模式之适配器模式
- 设计模式之适配器模式
- 设计模式之适配器模式
- 设计模式之适配器模式
- 设计模式之--适配器模式.
- Retrofit+RxJava+RxAndroid+Gson快速构建网络框架
- 图像滤镜艺术---仿Instagram PC版图像编辑软件
- EffectiveC++学习笔记-条款48
- 复杂链表的复制
- jvm
- 设计模式之适配器模式
- 输入输出挂
- Django启动服务器报错:maximum recursion depth exceeded in cmp
- CentOS7 minimal*xfce+Win10 双系统配置过程记录
- MOOC清华《面向对象程序设计》第3章:移动构造函数实验
- 【NOIP模拟考三】线段树/ST表 day2 second 二叉树
- springmvc之上传图片
- DOS命令与批处理学习历程
- spring中关于对jdbc.properties使用的两种配置方式