Java 龙目岛
import lombok.Builder;
@Builder
public class Email {
private String to;
private String from;
private String subject;
private String body;
}
用法示例:
Email.builder().to("email1@email.com")
.from("email2@email.com")
.subject("Email subject")
.body("Email content")
.build();