Package org.apache.johnzon.core
Enum RejectDuplicateKeysMode
- java.lang.Object
-
- java.lang.Enum<RejectDuplicateKeysMode>
-
- org.apache.johnzon.core.RejectDuplicateKeysMode
-
- All Implemented Interfaces:
Serializable
,Comparable<RejectDuplicateKeysMode>
public enum RejectDuplicateKeysMode extends Enum<RejectDuplicateKeysMode>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
RejectDuplicateKeysMode.Put
-
Field Summary
Fields Modifier and Type Field Description (package private) static List<String>
CONFIG_KEYS
private RejectDuplicateKeysMode.Put
put
-
Constructor Summary
Constructors Modifier Constructor Description private
RejectDuplicateKeysMode(RejectDuplicateKeysMode.Put put)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RejectDuplicateKeysMode
from(Map<String,?> config)
RejectDuplicateKeysMode.Put
put()
static RejectDuplicateKeysMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static RejectDuplicateKeysMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final RejectDuplicateKeysMode DEFAULT
-
TRUE
public static final RejectDuplicateKeysMode TRUE
-
FIRST
public static final RejectDuplicateKeysMode FIRST
-
-
Field Detail
-
put
private final RejectDuplicateKeysMode.Put put
-
-
Constructor Detail
-
RejectDuplicateKeysMode
private RejectDuplicateKeysMode(RejectDuplicateKeysMode.Put put)
-
-
Method Detail
-
values
public static RejectDuplicateKeysMode[] 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 (RejectDuplicateKeysMode c : RejectDuplicateKeysMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RejectDuplicateKeysMode 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
-
from
public static RejectDuplicateKeysMode from(Map<String,?> config)
-
put
public RejectDuplicateKeysMode.Put put()
-
-