public enum MatchMode extends Enum<MatchMode>
Example.enableLike(MatchMode)
Enum Constant and Description |
---|
ANYWHERE
Match the pattern anywhere in the string
|
END
Match the end of the string to the pattern
|
EXACT
Match the entire string to the pattern
|
START
Match the start of the string to the pattern
|
Modifier and Type | Method and Description |
---|---|
abstract String |
toMatchString(String pattern)
Convert the pattern, by appending/prepending "%"
|
static MatchMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MatchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatchMode EXACT
public static final MatchMode START
public static final MatchMode END
public static final MatchMode ANYWHERE
public static MatchMode[] values()
for (MatchMode c : MatchMode.values()) System.out.println(c);
public static MatchMode 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 JBoss by Red Hat. All rights reserved.