public static enum Replacements.CoalescePolicy extends Enum<Replacements.CoalescePolicy>
Enum Constant and Description |
---|
EXISTING_FIRST
Accept overlapping insertions, with the existing insertion before the new one.
|
REJECT
Reject overlapping insertions and throw an
IllegalArgumentException . |
REPLACEMENT_FIRST
Accept overlapping insertions, with the new insertion before the existing one.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
coalesce(String replacement,
String existing)
Handle an overlapping insert.
|
static Replacements.CoalescePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Replacements.CoalescePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Replacements.CoalescePolicy REJECT
IllegalArgumentException
.public static final Replacements.CoalescePolicy REPLACEMENT_FIRST
public static final Replacements.CoalescePolicy EXISTING_FIRST
public static Replacements.CoalescePolicy[] values()
for (Replacements.CoalescePolicy c : Replacements.CoalescePolicy.values()) System.out.println(c);
public static Replacements.CoalescePolicy 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 © 2021 Google LLC. All rights reserved.