public enum Pattern extends Enum<Pattern>
Enum Constant and Description |
---|
EXCLUDE
排除匹配
|
KEYWORD
按照关键字匹配
|
NONE
不进行匹配
|
REGEX
按照正则方式进行匹配
|
Modifier and Type | Method and Description |
---|---|
static Pattern |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pattern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pattern NONE
public static final Pattern KEYWORD
public static final Pattern REGEX
public static final Pattern EXCLUDE
public static Pattern[] values()
for (Pattern c : Pattern.values()) System.out.println(c);
public static Pattern 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 © 2020 Pivotal Software, Inc.. All rights reserved.