public enum CompareType extends Enum<CompareType>
Enum Constant and Description |
---|
ANT
ANT style path comparison.
|
PLAIN
Plain equals comparison.
|
REG_EXP
Regular expression comparison.
|
Modifier and Type | Method and Description |
---|---|
static CompareType |
findByDisplayName(String displayName)
Finds a CompareType based on displayName.
|
static CompareType |
findByOperator(char operator)
Finds a CompareType based on the operator.
|
String |
getDisplayName()
Returns a "human readable" name of the instance.
|
static List<String> |
getDisplayNames()
Gets a list of all CompareType's displayNames.
|
char |
getOperator()
Returns the operator, the one-char identifier for the CompareType.
|
boolean |
matches(String pattern,
String str)
Tells if the given string matches the given pattern based on the algorithm of this CompareType instance.
|
String |
toString() |
static CompareType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompareType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompareType PLAIN
public static final CompareType ANT
public static final CompareType REG_EXP
public static CompareType[] values()
for (CompareType c : CompareType.values()) System.out.println(c);
public static CompareType 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<String> getDisplayNames()
public static CompareType findByDisplayName(String displayName)
displayName
- the displayNamepublic static CompareType findByOperator(char operator)
operator
- the operator.public boolean matches(String pattern, String str)
pattern
- the patternstr
- the stringpublic String getDisplayName()
public char getOperator()
public String toString()
toString
in class Enum<CompareType>
Copyright © 2004-2015. All Rights Reserved.