@Test void builderShouldThrowWhenBaseAndUsernameGiven() { assertThatThrownBy(() -> MailboxQuery.builder() .userAndNamespaceFrom(mailboxPath) .username(CURRENT_USER)) .isInstanceOf(IllegalStateException.class); }
public static Builder builder() { return new Builder(); }
MailboxQuery { public static Builder builder() { return new Builder(); } }
MailboxQuery { public static Builder builder() { return new Builder(); } private  MailboxQuery(Optional<String> namespace, Optional<Username> user, MailboxNameExpression mailboxNameExpression); }
MailboxQuery { public static Builder builder() { return new Builder(); } private  MailboxQuery(Optional<String> namespace, Optional<Username> user, MailboxNameExpression mailboxNameExpression); static Builder builder(); static Builder privateMailboxesBuilder(MailboxSession session); Optional<String> getNamespace(); Optional<Username> getUser(); MailboxNameExpression getMailboxNameExpression(); boolean isPrivateMailboxes(MailboxSession session); boolean isExpressionMatch(String name); boolean isPathMatch(MailboxPath mailboxPath); boolean matches(Mailbox mailbox); UserBound asUserBound(); @Override final boolean equals(Object o); @Override final int hashCode(); String toString(); }
MailboxQuery { public static Builder builder() { return new Builder(); } private  MailboxQuery(Optional<String> namespace, Optional<Username> user, MailboxNameExpression mailboxNameExpression); static Builder builder(); static Builder privateMailboxesBuilder(MailboxSession session); Optional<String> getNamespace(); Optional<Username> getUser(); MailboxNameExpression getMailboxNameExpression(); boolean isPrivateMailboxes(MailboxSession session); boolean isExpressionMatch(String name); boolean isPathMatch(MailboxPath mailboxPath); boolean matches(Mailbox mailbox); UserBound asUserBound(); @Override final boolean equals(Object o); @Override final int hashCode(); String toString();  }