public enum PersistentDictionaryAddResult extends Enum<PersistentDictionaryAddResult> implements Enumeration
PersistentDictionary
.Enum Constant and Description |
---|
EXISTING_KEY_NEW_VALUE
Indicates that the collection already contained the specified key.
|
NEW_KEY
Indicates that the collection did not previously contain the specified key and it
has been added.
|
Modifier and Type | Method and Description |
---|---|
static PersistentDictionaryAddResult |
getDefault()
Get the enum constant that is considered to be the default.
|
static PersistentDictionaryAddResult |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static PersistentDictionaryAddResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistentDictionaryAddResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistentDictionaryAddResult EXISTING_KEY_NEW_VALUE
public static final PersistentDictionaryAddResult NEW_KEY
public static PersistentDictionaryAddResult[] values()
for (PersistentDictionaryAddResult c : PersistentDictionaryAddResult.values()) System.out.println(c);
public static PersistentDictionaryAddResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface Enumeration
@Nonnull public static PersistentDictionaryAddResult getFromValue(int value)
value
- a numeric value.@Nonnull public static PersistentDictionaryAddResult getDefault()