|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CompareType>
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.CompareType
public enum CompareType
Enum of different ways of comparing a pattern.
Enum Constant Summary | |
---|---|
ANT
ANT style path comparison. |
|
PLAIN
Plain equals comparison. |
|
REG_EXP
Regular expression comparison. |
Method Summary | |
---|---|
static CompareType |
findByDisplayName(String displayName)
Finds a CompareType based on displayName. |
String |
getDisplayName()
Returns a "human readable" name of the instance. |
static List<String> |
getDisplayNames()
Gets a list of all CompareType's displayNames. |
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CompareType PLAIN
public static final CompareType ANT
public static final CompareType REG_EXP
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic static List<String> getDisplayNames()
public static CompareType findByDisplayName(String displayName)
displayName
- the displayName
public boolean matches(String pattern, String str)
pattern
- the patternstr
- the string
public String getDisplayName()
public String toString()
toString
in class Enum<CompareType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |