public enum MatchMethod extends Enum<MatchMethod>
| Enum Constant and Description |
|---|
CONTAINS
Means source string should contains compared string.
|
EXACT
Means full matching of strings.
|
REGEXP
Means source string should match to compared string as regexp.
|
START_WITH
Means source string should start with compared string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
match(String sourceStr,
String comparedStr)
Performs matching of strings based on current method.
|
static MatchMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MatchMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatchMethod EXACT
public static final MatchMethod START_WITH
public static final MatchMethod CONTAINS
public static final MatchMethod REGEXP
public static MatchMethod[] values()
for (MatchMethod c : MatchMethod.values()) System.out.println(c);
public static MatchMethod 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 © 2022. All rights reserved.