public static enum Filter.MatchMode extends java.lang.Enum<Filter.MatchMode>
Enum Constant and Description |
---|
ANYWHERE
Match anywhere within a String - equivalent to contains().
|
END
Match the end a String - equivalent to endsWith().
|
EXACT
Match an exact String - equivalent to equals().
|
START
Match the start of a String - equivalent to startsWith().
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
toMatchString(java.lang.String value,
java.lang.String wildcard)
Convert the given value into a match string using the given wildcard.
|
static Filter.MatchMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Filter.MatchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Filter.MatchMode ANYWHERE
public static final Filter.MatchMode START
public static final Filter.MatchMode END
public static final Filter.MatchMode EXACT
public static Filter.MatchMode[] values()
for (Filter.MatchMode c : Filter.MatchMode.values()) System.out.println(c);
public static Filter.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 nullpublic abstract java.lang.String toMatchString(java.lang.String value, java.lang.String wildcard)
value
- The value for which to retrieve the match string.wildcard
- The wildcard to use.