public static enum WriteMode.Tag extends Enum<WriteMode.Tag>
WriteMode
.Enum Constant and Description |
---|
ADD
Never overwrite the existing file.
|
OVERWRITE
Always overwrite the existing file.
|
UPDATE
Overwrite if the given "rev" matches the existing file's "rev".
|
Modifier and Type | Method and Description |
---|---|
static WriteMode.Tag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteMode.Tag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteMode.Tag ADD
public static final WriteMode.Tag OVERWRITE
WriteMode.ADD
.public static final WriteMode.Tag UPDATE
public static WriteMode.Tag[] values()
for (WriteMode.Tag c : WriteMode.Tag.values()) System.out.println(c);
public static WriteMode.Tag 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 null