public static enum StringTranslator.MatchMode extends java.lang.Enum<StringTranslator.MatchMode>
Enum Constant | Description |
---|---|
GREEDY |
Defines the greedy approach to matching, where as much of the input as possible is used
to complete the translation
|
RELUCTANT |
Defines the reluctant approach to matching, where as little of the input as possible is used
to complete the translation
|
Modifier and Type | Method | Description |
---|---|---|
static StringTranslator.MatchMode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static StringTranslator.MatchMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringTranslator.MatchMode GREEDY
public static final StringTranslator.MatchMode RELUCTANT
public static StringTranslator.MatchMode[] values()
for (StringTranslator.MatchMode c : StringTranslator.MatchMode.values()) System.out.println(c);
public static StringTranslator.MatchMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null