public enum AddFlag extends Enum<AddFlag>
Enum Constant and Description |
---|
APPEND
Any previous value(s) should be overwritten/replaced.
|
PREPEND
Any previous value(s) should be overwritten/replaced.
|
REPLACE
Any previous value(s) should be overwritten/replaced.
|
SKIP_IF_EMPTY
Don't add the value if it's
|
Modifier and Type | Field and Description |
---|---|
static EnumSet<AddFlag> |
DEFAULT_FLAGS
Default flags.
|
static EnumSet<AddFlag> |
SKIP_IF_EMPTY_FLAGS
Default skip-if-empty flags.
|
Modifier and Type | Method and Description |
---|---|
static EnumSet<AddFlag> |
orDefault(EnumSet<AddFlag> s)
Returns
DEFAULT_FLAGS if the enum set is |
static AddFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AddFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AddFlag SKIP_IF_EMPTY
public static final EnumSet<AddFlag> DEFAULT_FLAGS
public static final EnumSet<AddFlag> SKIP_IF_EMPTY_FLAGS
public static AddFlag[] values()
for (AddFlag c : AddFlag.values()) System.out.println(c);
public static AddFlag 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 static EnumSet<AddFlag> orDefault(EnumSet<AddFlag> s)
DEFAULT_FLAGS
if the enum set is s
- The set to check.DEFAULT_FLAGS
. Never Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.