public enum TargetRule extends java.lang.Enum<TargetRule>
| Enum Constant and Description |
|---|
ANY |
EQUALS |
MATCHES |
STARTS_WITH |
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(java.lang.String pattern,
java.lang.String target) |
static TargetRule |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TargetRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TargetRule EQUALS
public static final TargetRule STARTS_WITH
public static final TargetRule MATCHES
public static final TargetRule ANY
public static TargetRule[] values()
for (TargetRule c : TargetRule.values()) System.out.println(c);
public static TargetRule 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 boolean test(java.lang.String pattern,
java.lang.String target)
Copyright © 2017 Richard Thurston. All Rights Reserved.