@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum DuplicateValueBehavior extends java.lang.Enum<DuplicateValueBehavior>
Enum Constant and Description |
---|
REJECT
Indicates that any entry containing duplicate attribute values should be
rejected.
|
RETAIN
Indicates that duplicate values should be retained, so that the resulting
entry may have multiple copies of the value.
|
STRIP
Indicates that duplicate values should be stripped, so that the resulting
entry will have only one copy of the value.
|
Modifier and Type | Method and Description |
---|---|
static DuplicateValueBehavior |
forName(java.lang.String name)
Retrieves the duplicate value behavior with the specified name.
|
static DuplicateValueBehavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DuplicateValueBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DuplicateValueBehavior STRIP
public static final DuplicateValueBehavior RETAIN
public static final DuplicateValueBehavior REJECT
public static DuplicateValueBehavior[] values()
for (DuplicateValueBehavior c : DuplicateValueBehavior.values()) System.out.println(c);
public static DuplicateValueBehavior valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Nullable public static DuplicateValueBehavior forName(@NotNull java.lang.String name)
name
- The name of the duplicate value behavior to retrieve. It
must not be null
.null
if no such
behavior is defined.