Enum DupeDetection.Mode
- java.lang.Object
-
- java.lang.Enum<DupeDetection.Mode>
-
- com.levigo.jadice.server.agent.email.DupeDetection.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<DupeDetection.Mode>
- Enclosing class:
- DupeDetection
public static enum DupeDetection.Mode extends Enum<DupeDetection.Mode>
Possible modes how to handle the dupe detection.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HEADERS
Use specified header fields for dupe detection.HEADERS_AND_BODY
Use specified header fields an mail body for dupe detection.MESSAGE_ID
Use only the message ID for dupe detection.NONE
Use no dupe detection.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DupeDetection.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static DupeDetection.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final DupeDetection.Mode NONE
Use no dupe detection.
-
MESSAGE_ID
public static final DupeDetection.Mode MESSAGE_ID
Use only the message ID for dupe detection.
-
HEADERS
public static final DupeDetection.Mode HEADERS
Use specified header fields for dupe detection.
-
HEADERS_AND_BODY
public static final DupeDetection.Mode HEADERS_AND_BODY
Use specified header fields an mail body for dupe detection.
-
-
Method Detail
-
values
public static DupeDetection.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DupeDetection.Mode c : DupeDetection.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DupeDetection.Mode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-