@Test public void buildShouldThrowWhenGivenInvalidKeywordAsHasKeyword() { expectedException.expect(IllegalArgumentException.class); FilterCondition.builder() .hasKeyword(Optional.of("$Draft%")) .build(); }
public static Builder builder() { return new Builder(); }
FilterCondition implements Filter { public static Builder builder() { return new Builder(); } }
FilterCondition implements Filter { public static Builder builder() { return new Builder(); } @VisibleForTesting  FilterCondition(Optional<List<String>> inMailboxes, Optional<List<String>> notInMailboxes, Optional<ZonedDateTime> before, Optional<ZonedDateTime> after, Optional<Number> minSize, Optional<Number> maxSize,
                                       Optional<Boolean> isFlagged, Optional<Boolean> isUnread, Optional<Boolean> isAnswered, Optional<Boolean> isDraft, Optional<Boolean> isForwarded,
                                       Optional<Boolean> hasAttachment,
                                       Optional<String> text, Optional<String> from, Optional<String> to, Optional<String> cc, Optional<String> bcc, Optional<String> subject,
                                       Optional<String> body, Optional<String> attachments, Optional<Header> header, Optional<String> hasKeyword, Optional<String> notKeyword, Optional<String> attachmentFileName); }
FilterCondition implements Filter { public static Builder builder() { return new Builder(); } @VisibleForTesting  FilterCondition(Optional<List<String>> inMailboxes, Optional<List<String>> notInMailboxes, Optional<ZonedDateTime> before, Optional<ZonedDateTime> after, Optional<Number> minSize, Optional<Number> maxSize,
                                       Optional<Boolean> isFlagged, Optional<Boolean> isUnread, Optional<Boolean> isAnswered, Optional<Boolean> isDraft, Optional<Boolean> isForwarded,
                                       Optional<Boolean> hasAttachment,
                                       Optional<String> text, Optional<String> from, Optional<String> to, Optional<String> cc, Optional<String> bcc, Optional<String> subject,
                                       Optional<String> body, Optional<String> attachments, Optional<Header> header, Optional<String> hasKeyword, Optional<String> notKeyword, Optional<String> attachmentFileName); static Builder builder(); Optional<List<String>> getInMailboxes(); Optional<List<String>> getNotInMailboxes(); Optional<ZonedDateTime> getBefore(); Optional<ZonedDateTime> getAfter(); Optional<Number> getMinSize(); Optional<Number> getMaxSize(); Optional<Boolean> getIsFlagged(); Optional<Boolean> getIsUnread(); Optional<Boolean> getIsAnswered(); Optional<Boolean> getIsDraft(); Optional<Boolean> getIsForwarded(); Optional<Boolean> getHasAttachment(); Optional<String> getText(); Optional<String> getFrom(); Optional<String> getTo(); Optional<String> getCc(); Optional<String> getBcc(); Optional<String> getSubject(); Optional<String> getBody(); Optional<String> getAttachments(); Optional<Header> getHeader(); Optional<String> getHasKeyword(); Optional<String> getNotKeyword(); Optional<String> getAttachmentFileName(); @Override final boolean equals(Object obj); @Override final int hashCode(); @Override String toString(); @Override String prettyPrint(String indentation); }
FilterCondition implements Filter { public static Builder builder() { return new Builder(); } @VisibleForTesting  FilterCondition(Optional<List<String>> inMailboxes, Optional<List<String>> notInMailboxes, Optional<ZonedDateTime> before, Optional<ZonedDateTime> after, Optional<Number> minSize, Optional<Number> maxSize,
                                       Optional<Boolean> isFlagged, Optional<Boolean> isUnread, Optional<Boolean> isAnswered, Optional<Boolean> isDraft, Optional<Boolean> isForwarded,
                                       Optional<Boolean> hasAttachment,
                                       Optional<String> text, Optional<String> from, Optional<String> to, Optional<String> cc, Optional<String> bcc, Optional<String> subject,
                                       Optional<String> body, Optional<String> attachments, Optional<Header> header, Optional<String> hasKeyword, Optional<String> notKeyword, Optional<String> attachmentFileName); static Builder builder(); Optional<List<String>> getInMailboxes(); Optional<List<String>> getNotInMailboxes(); Optional<ZonedDateTime> getBefore(); Optional<ZonedDateTime> getAfter(); Optional<Number> getMinSize(); Optional<Number> getMaxSize(); Optional<Boolean> getIsFlagged(); Optional<Boolean> getIsUnread(); Optional<Boolean> getIsAnswered(); Optional<Boolean> getIsDraft(); Optional<Boolean> getIsForwarded(); Optional<Boolean> getHasAttachment(); Optional<String> getText(); Optional<String> getFrom(); Optional<String> getTo(); Optional<String> getCc(); Optional<String> getBcc(); Optional<String> getSubject(); Optional<String> getBody(); Optional<String> getAttachments(); Optional<Header> getHeader(); Optional<String> getHasKeyword(); Optional<String> getNotKeyword(); Optional<String> getAttachmentFileName(); @Override final boolean equals(Object obj); @Override final int hashCode(); @Override String toString(); @Override String prettyPrint(String indentation);  }