@Test void bodyStartOctetShouldThrowWhenNegative() { assertThatThrownBy(() -> SimpleMailboxMessage.builder() .bodyStartOctet(-1)) .isInstanceOf(IllegalArgumentException.class); }
public static Builder builder() { return new Builder(); }
SimpleMailboxMessage extends DelegatingMailboxMessage { public static Builder builder() { return new Builder(); } }
SimpleMailboxMessage extends DelegatingMailboxMessage { public static Builder builder() { return new Builder(); } SimpleMailboxMessage(MessageId messageId, Date internalDate, long size, int bodyStartOctet,
            SharedInputStream content, Flags flags,
            PropertyBuilder propertyBuilder, MailboxId mailboxId, List<MessageAttachmentMetadata> attachments);  SimpleMailboxMessage(MessageId messageId, Date internalDate, long size, int bodyStartOctet,
                                SharedInputStream content, Flags flags,
                                PropertyBuilder propertyBuilder, MailboxId mailboxId); }
SimpleMailboxMessage extends DelegatingMailboxMessage { public static Builder builder() { return new Builder(); } SimpleMailboxMessage(MessageId messageId, Date internalDate, long size, int bodyStartOctet,
            SharedInputStream content, Flags flags,
            PropertyBuilder propertyBuilder, MailboxId mailboxId, List<MessageAttachmentMetadata> attachments);  SimpleMailboxMessage(MessageId messageId, Date internalDate, long size, int bodyStartOctet,
                                SharedInputStream content, Flags flags,
                                PropertyBuilder propertyBuilder, MailboxId mailboxId); static Builder builder(); static Builder from(MailboxMessage original); static SimpleMailboxMessage copy(MailboxId mailboxId, MailboxMessage original); static Builder fromWithoutAttachments(MailboxMessage original); static SimpleMailboxMessage copyWithoutAttachments(MailboxId mailboxId, MailboxMessage original); @Override ComposedMessageIdWithMetaData getComposedMessageIdWithMetaData(); @Override MailboxId getMailboxId(); @Override MessageUid getUid(); @Override boolean isAnswered(); @Override boolean isDeleted(); @Override boolean isDraft(); @Override boolean isFlagged(); @Override boolean isRecent(); @Override boolean isSeen(); @Override ModSeq getModSeq(); @Override void setModSeq(ModSeq modSeq); @Override void setUid(MessageUid uid); @Override synchronized void setFlags(Flags flags); @Override int hashCode(); @Override boolean equals(Object obj); String toString(); }
SimpleMailboxMessage extends DelegatingMailboxMessage { public static Builder builder() { return new Builder(); } SimpleMailboxMessage(MessageId messageId, Date internalDate, long size, int bodyStartOctet,
            SharedInputStream content, Flags flags,
            PropertyBuilder propertyBuilder, MailboxId mailboxId, List<MessageAttachmentMetadata> attachments);  SimpleMailboxMessage(MessageId messageId, Date internalDate, long size, int bodyStartOctet,
                                SharedInputStream content, Flags flags,
                                PropertyBuilder propertyBuilder, MailboxId mailboxId); static Builder builder(); static Builder from(MailboxMessage original); static SimpleMailboxMessage copy(MailboxId mailboxId, MailboxMessage original); static Builder fromWithoutAttachments(MailboxMessage original); static SimpleMailboxMessage copyWithoutAttachments(MailboxId mailboxId, MailboxMessage original); @Override ComposedMessageIdWithMetaData getComposedMessageIdWithMetaData(); @Override MailboxId getMailboxId(); @Override MessageUid getUid(); @Override boolean isAnswered(); @Override boolean isDeleted(); @Override boolean isDraft(); @Override boolean isFlagged(); @Override boolean isRecent(); @Override boolean isSeen(); @Override ModSeq getModSeq(); @Override void setModSeq(ModSeq modSeq); @Override void setUid(MessageUid uid); @Override synchronized void setFlags(Flags flags); @Override int hashCode(); @Override boolean equals(Object obj); String toString();  }