public enum EAppend extends Enum<EAppend> implements BooleanSupplier
| Enum Constant and Description |
|---|
APPEND
Append to an existing object
|
TRUNCATE
Truncate an eventually existing object and start over
|
| Modifier and Type | Field and Description |
|---|---|
static EAppend |
DEFAULT
The default is
TRUNCATE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAsBoolean() |
OpenOption[] |
getAsOpenOptions() |
boolean |
isAppend() |
boolean |
isTruncate() |
static EAppend |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EAppend[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EAppend APPEND
public static final EAppend TRUNCATE
public static EAppend[] values()
for (EAppend c : EAppend.values()) System.out.println(c);
public static EAppend 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 boolean getAsBoolean()
getAsBoolean in interface BooleanSupplierpublic boolean isAppend()
public boolean isTruncate()
@Nonnull public OpenOption[] getAsOpenOptions()
Copyright © 2014–2019 Philip Helger. All rights reserved.