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 pattern exactly.
|
START
Match the start of the string to the pattern.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
toMatchString(java.lang.String pattern)
Convert the pattern by prepending/append "%".
|
static MatchMode |
valueOf(java.lang.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(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 pattern)
pattern
- The pattern to convert according to the mode.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.