2021年6月20日
摘要: 大量的if else组成的代码,维护性和扩展性较差,可以使用策略模式来进行优化。 抽象的处理类: public abstract class AbstractHandler { public abstract void handle(); public abstract String type(); 阅读全文
posted @ 2021-06-20 22:50 lnlvinso 阅读(393) 评论(0) 推荐(0) 编辑