Java中的设计模式

  • 定义
@Value
@Builder
public class Xxx {

    Yyy1 yyy1;

    Yyy2 yyy2;
  • 使用
xxx.builder().Yyy1(yyy1).Yyy2(yyy2).build();
原文地址:https://www.cnblogs.com/wyp1988/p/12779164.html