public final class SearchTermHelpers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static javax.mail.search.SearchTerm |
and(java.util.List<javax.mail.search.SearchTerm> terms) |
static javax.mail.search.SearchTerm |
and(javax.mail.search.SearchTerm... terms) |
static javax.mail.search.SearchTerm |
flag(javax.mail.Flags.Flag flag) |
static javax.mail.search.SearchTerm |
from(java.lang.String email) |
static javax.mail.search.SearchTerm |
not(javax.mail.search.SearchTerm term) |
static javax.mail.search.SearchTerm |
receivedSince(java.util.Date date) |
static java.util.Date |
relativeDate(int unit,
int amount) |
static javax.mail.search.SearchTerm |
subject(java.lang.String containsCaseInsensitive) |
public static javax.mail.search.SearchTerm and(javax.mail.search.SearchTerm... terms)
public static javax.mail.search.SearchTerm and(java.util.List<javax.mail.search.SearchTerm> terms)
public static javax.mail.search.SearchTerm not(javax.mail.search.SearchTerm term)
public static javax.mail.search.SearchTerm subject(java.lang.String containsCaseInsensitive)
public static javax.mail.search.SearchTerm from(java.lang.String email)
public static javax.mail.search.SearchTerm receivedSince(java.util.Date date)
public static javax.mail.search.SearchTerm flag(javax.mail.Flags.Flag flag)
public static java.util.Date relativeDate(int unit, int amount)
unit
- - e.g. Calendar.HOURSamount
- - negative for the past!