Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EmailMessage
- {
- private String from;
- private LinkedList <String> to;
- private String subject;
- private String content;
- private String mimeType;
- public EmailMessage(private String from_,
- private LinkedList <String>to_,
- private String subject_,
- private String content_,
- private String mimeType_)
- {
- this.from=from_;
- this.to=to_;
- this.subject=subject_;
- this.content=content_;
- this.miniType=miniType_;
- }
- public Builder addFrom(String from_) {
- this.from = from_;
- return this;
- }
- public Builder to(LinkedList<String> to_) {
- this.to = to_;
- return this;
- }
- public Builder addSubject(String subject_) {
- this.subject = subject_;
- return this;
- }
- public Builder addcontent(String content_) {
- this.content = content_;
- return this;
- }
- public static Builder builder()
- {
- return new EmailMessage.Builder();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement