随笔分类 -  设计模式

摘要:设计模式,建造者模式 常见使用方法builder,build 去掉new 关键字使用 public class TestPod { private String ip; public interface Builder { Builder setIp(String ip); TestPod buil 阅读全文
posted @ 2021-05-06 15:19 SpecialSpeculator 阅读(35) 评论(0) 推荐(0)
摘要:# 1.传统if -else 写法 ```java String nodeModelStr = ""; if (nodeType == NodeType.START){ StartModel startModel = JSON.parseObject(nodeModelStr,StartModel. 阅读全文
posted @ 2020-12-16 17:42 SpecialSpeculator 阅读(148) 评论(0) 推荐(0)