public enum MatchStrategy extends Enum<MatchStrategy>
| Enum Constant and Description |
|---|
CONTAINS
true if OO value contains some predefined string
|
DIFFERS_FROM
true if value from OO is not the same as predefined value
|
IS
true if OO value is equal to some predefined value
|
IS_A_REGEX_MATCH_FOR
true if value from oo matches a regex
|
STARTS_WITH
true if OO value starts with some predefined string
|
| Modifier and Type | Method and Description |
|---|---|
static List<MatchStrategy> |
getMatchStrategies() |
abstract boolean |
matches(String s,
String valueToCompareWith) |
static MatchStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MatchStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatchStrategy IS
public static final MatchStrategy CONTAINS
public static final MatchStrategy STARTS_WITH
public static final MatchStrategy DIFFERS_FROM
public static final MatchStrategy IS_A_REGEX_MATCH_FOR
public static MatchStrategy[] values()
for (MatchStrategy c : MatchStrategy.values()) System.out.println(c);
public static MatchStrategy 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 nullpublic static List<MatchStrategy> getMatchStrategies()
Copyright © 2004-2016. All Rights Reserved.