適配器模式代碼示例

例子來源:《設計模式之禪》——第19章 適配器模式 Target目標角色;Adaptee源角色;Adapter適配器角色。 Target public interface Target { void request(); } Adaptee public class Adaptee { public void doSomething(){ System.out.pr
相關文章
相關標籤/搜索