文件名称:Adapter
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Matlab] [源码]
- 上传时间:
- 2008-10-13
- 文件大小:
- 40.13kb
- 下载次数:
- 0次
- 提 供 者:
- 刘**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
意图 将一个类的接口转换成客户希望的另外一个接口。A d a p t e r 模式使得原本由于接口不兼容而不能一起工作的那些类可以一起工作。
适用性 · 你想使用一个已经存在的类,而它的接口不符合你的需求。 · 你想创建一个可以复用的类,该类可以与其他不相关的类或不可预见的类(即那些接口可能不一定兼容的类)协同工作。 · (仅适用于对象A d a p t e r )你想使用一些已经存在的子类,但是不可能对每一个都进行子类化以匹配它们的接口。对象适配器可以适配它的父类接口。
-intent to a kind of interface into customers want another one interface. A p d a t e r model makes the original interface is not as compatible and not those working class can work together. Applicability you want to use an already existing category, and its interface does not meet your needs. You want to create a reusable class, and other such can not related to the type or unpredictable category (that is, those interface may not necessarily compatible) to work together. (Only applies to a target A d p t e r) you want to use already existing sub-categories, but not all right for every child class to fit their interface. Object Adapter can Adapter its parent interface.
适用性 · 你想使用一个已经存在的类,而它的接口不符合你的需求。 · 你想创建一个可以复用的类,该类可以与其他不相关的类或不可预见的类(即那些接口可能不一定兼容的类)协同工作。 · (仅适用于对象A d a p t e r )你想使用一些已经存在的子类,但是不可能对每一个都进行子类化以匹配它们的接口。对象适配器可以适配它的父类接口。
-intent to a kind of interface into customers want another one interface. A p d a t e r model makes the original interface is not as compatible and not those working class can work together. Applicability you want to use an already existing category, and its interface does not meet your needs. You want to create a reusable class, and other such can not related to the type or unpredictable category (that is, those interface may not necessarily compatible) to work together. (Only applies to a target A d p t e r) you want to use already existing sub-categories, but not all right for every child class to fit their interface. Object Adapter can Adapter its parent interface.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 117143165adapter.rar 列表 01_Adapter\Adapter.jpr 01_Adapter\Adapter.jpr.local~ 01_Adapter\Adapter.jpr.local 01_Adapter\Adapter.md~ 01_Adapter\Adapter.mdl 01_Adapter\src\Shape.java 01_Adapter\src\Text.java 01_Adapter\src\TextShapeClass.java 01_Adapter\src\TextShapeObject.java 01_Adapter\src 01_Adapter\classes\Adapter.cdi 01_Adapter\classes\Shape.class 01_Adapter\classes\Text.class 01_Adapter\classes\TextShapeClass.class 01_Adapter\classes\TextShapeObject.class 01_Adapter\classes\connections.xml 01_Adapter\classes\package cache\unnamed package.dep2 01_Adapter\classes\package cache 01_Adapter\classes 01_Adapter\bak\TextShapeObject.java~1~ 01_Adapter\bak 01_Adapter