- All Implemented Interfaces:
Serializable, Comparable<MailCache.FetchMode>, java.lang.constant.Constable
- Enclosing class:
MailCache
Enumeration of email fetching strategies.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll messages.Cache only.Header only.Header and cache only.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic MailCache.FetchModeReturns the enum constant of this class with the specified name.static MailCache.FetchMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
HEADER
Header only.ALL
All messages.CACHE_ONLY
Cache only.HEADER_CACHE_ONLY
Header and cache only.
Constructor Details
FetchMode
private FetchMode()
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null