用策略模式实现代码 if/else优化

interface Strategy { void run() throws Exception; } class FastStrategy implements Strategy { @Override void run() throws Exception { // 快速执行逻辑 } } class NormalStrategy implements Strategy { @Override
相关文章
相关标签/搜索