@Test void nullFieldShouldThrow() { assertThatThrownBy(() -> HeaderCollection.builder().add(null).build()) .isInstanceOf(NullPointerException.class); }
public static Builder builder() { return new Builder(); }
HeaderCollection { public static Builder builder() { return new Builder(); } }
HeaderCollection { public static Builder builder() { return new Builder(); } private  HeaderCollection(ImmutableSet<EMailer> toAddressSet, ImmutableSet<EMailer> fromAddressSet,
                             ImmutableSet<EMailer> ccAddressSet, ImmutableSet<EMailer> bccAddressSet,
                             ImmutableSet<EMailer> replyToAddressSet, ImmutableSet<String> subjectSet,
                             List<Header> headers, Optional<ZonedDateTime> sentDate, Optional<String> messageID); }
HeaderCollection { public static Builder builder() { return new Builder(); } private  HeaderCollection(ImmutableSet<EMailer> toAddressSet, ImmutableSet<EMailer> fromAddressSet,
                             ImmutableSet<EMailer> ccAddressSet, ImmutableSet<EMailer> bccAddressSet,
                             ImmutableSet<EMailer> replyToAddressSet, ImmutableSet<String> subjectSet,
                             List<Header> headers, Optional<ZonedDateTime> sentDate, Optional<String> messageID); static Builder builder(); Set<EMailer> getToAddressSet(); Set<EMailer> getFromAddressSet(); Set<EMailer> getCcAddressSet(); Set<EMailer> getBccAddressSet(); Set<EMailer> getReplyToAddressSet(); Set<String> getSubjectSet(); Optional<ZonedDateTime> getSentDate(); List<Header> getHeaders(); Optional<String> getMessageID(); }
HeaderCollection { public static Builder builder() { return new Builder(); } private  HeaderCollection(ImmutableSet<EMailer> toAddressSet, ImmutableSet<EMailer> fromAddressSet,
                             ImmutableSet<EMailer> ccAddressSet, ImmutableSet<EMailer> bccAddressSet,
                             ImmutableSet<EMailer> replyToAddressSet, ImmutableSet<String> subjectSet,
                             List<Header> headers, Optional<ZonedDateTime> sentDate, Optional<String> messageID); static Builder builder(); Set<EMailer> getToAddressSet(); Set<EMailer> getFromAddressSet(); Set<EMailer> getCcAddressSet(); Set<EMailer> getBccAddressSet(); Set<EMailer> getReplyToAddressSet(); Set<String> getSubjectSet(); Optional<ZonedDateTime> getSentDate(); List<Header> getHeaders(); Optional<String> getMessageID(); static final String TO; static final String FROM; static final String CC; static final String BCC; static final String REPLY_TO; static final String SUBJECT; static final String DATE; static final String MESSAGE_ID; }