public static enum Replace.Strategy extends Enum<Replace.Strategy>
| Enum Constant and Description |
|---|
NORMAL
Replaces occurrences of a string with another string
|
REGEX
Uses regular expressions to find matches for replacement
|
| Modifier and Type | Method and Description |
|---|---|
static Replace.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Replace.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Replace.Strategy NORMAL
public static final Replace.Strategy REGEX
public static Replace.Strategy[] values()
for (Replace.Strategy c : Replace.Strategy.values()) System.out.println(c);
public static Replace.Strategy 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 © 2020. All rights reserved.