@PublicApi public enum PutPolicy extends Enum<PutPolicy>
| Enum Constant and Description |
|---|
ADD_ONLY
Only put the value if no value is currently associated with the key.
|
PUT_ALWAYS
Always put the value, regardless of whether a value is currently associated or not.
|
REPLACE_ONLY
Only put the value if a value is currently associated with the key.
|
| Modifier and Type | Method and Description |
|---|---|
static PutPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PutPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PutPolicy ADD_ONLY
public static final PutPolicy REPLACE_ONLY
public static final PutPolicy PUT_ALWAYS
public static PutPolicy[] values()
for (PutPolicy c : PutPolicy.values()) System.out.println(c);
public static PutPolicy 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 nullCopyright © 2019 Atlassian. All rights reserved.