随笔分类 - 设计模式
摘要:设计模式,建造者模式 常见使用方法builder,build 去掉new 关键字使用 public class TestPod { private String ip; public interface Builder { Builder setIp(String ip); TestPod buil
阅读全文
摘要:# 1.传统if -else 写法 ```java String nodeModelStr = ""; if (nodeType == NodeType.START){ StartModel startModel = JSON.parseObject(nodeModelStr,StartModel.
阅读全文