摘要: 适配器模式就是把原有的接口变成需要的的接口的样子,简单地说就是根据要求转换接口。这个模式比较简单,贴个把Enumeration 转成 Iterator的例子:public class EnumerationIterator implements Iterator { Enumeration e... 阅读全文
posted @ 2015-08-24 17:52 ICE_XUE 阅读(148) 评论(0) 推荐(0) 编辑