@Test(expected = NullPointerException.class) public void idShouldThrowWhenIdIsNull() { Mailbox.builder() .id(null); }
public static Builder builder() { return new Builder(); }
Mailbox { public static Builder builder() { return new Builder(); } }
Mailbox { public static Builder builder() { return new Builder(); } @VisibleForTesting  Mailbox(MailboxId id, String name, Optional<MailboxId> parentId, Optional<Role> role, SortOrder sortOrder, boolean mustBeOnlyMailbox,
                               boolean mayReadItems, boolean mayAddItems, boolean mayRemoveItems, boolean mayCreateChild, boolean mayRename, boolean mayDelete,
                               Number totalMessages, Number unreadMessages, Number totalThreads, Number unreadThreads, Rights sharedWith, MailboxNamespace namespace,
                               Optional<Quotas> quotas); }
Mailbox { public static Builder builder() { return new Builder(); } @VisibleForTesting  Mailbox(MailboxId id, String name, Optional<MailboxId> parentId, Optional<Role> role, SortOrder sortOrder, boolean mustBeOnlyMailbox,
                               boolean mayReadItems, boolean mayAddItems, boolean mayRemoveItems, boolean mayCreateChild, boolean mayRename, boolean mayDelete,
                               Number totalMessages, Number unreadMessages, Number totalThreads, Number unreadThreads, Rights sharedWith, MailboxNamespace namespace,
                               Optional<Quotas> quotas); static Builder builder(); MailboxId getId(); String getName(); Optional<MailboxId> getParentId(); Optional<Role> getRole(); SortOrder getSortOrder(); boolean isMustBeOnlyMailbox(); boolean isMayReadItems(); boolean isMayAddItems(); boolean isMayRemoveItems(); boolean isMayCreateChild(); boolean isMayRename(); boolean isMayDelete(); Number getTotalMessages(); Number getUnreadMessages(); Number getTotalThreads(); Number getUnreadThreads(); Rights getSharedWith(); MailboxNamespace getNamespace(); Optional<Quotas> getQuotas(); @JsonIgnore boolean hasRole(Role role); @JsonIgnore boolean hasSystemRole(); @Override final boolean equals(Object obj); @Override final int hashCode(); @Override String toString(); }
Mailbox { public static Builder builder() { return new Builder(); } @VisibleForTesting  Mailbox(MailboxId id, String name, Optional<MailboxId> parentId, Optional<Role> role, SortOrder sortOrder, boolean mustBeOnlyMailbox,
                               boolean mayReadItems, boolean mayAddItems, boolean mayRemoveItems, boolean mayCreateChild, boolean mayRename, boolean mayDelete,
                               Number totalMessages, Number unreadMessages, Number totalThreads, Number unreadThreads, Rights sharedWith, MailboxNamespace namespace,
                               Optional<Quotas> quotas); static Builder builder(); MailboxId getId(); String getName(); Optional<MailboxId> getParentId(); Optional<Role> getRole(); SortOrder getSortOrder(); boolean isMustBeOnlyMailbox(); boolean isMayReadItems(); boolean isMayAddItems(); boolean isMayRemoveItems(); boolean isMayCreateChild(); boolean isMayRename(); boolean isMayDelete(); Number getTotalMessages(); Number getUnreadMessages(); Number getTotalThreads(); Number getUnreadThreads(); Rights getSharedWith(); MailboxNamespace getNamespace(); Optional<Quotas> getQuotas(); @JsonIgnore boolean hasRole(Role role); @JsonIgnore boolean hasSystemRole(); @Override final boolean equals(Object obj); @Override final int hashCode(); @Override String toString();  }