|
||||||||||
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(java.lang.String displayName)
Finds a CompareType based on displayName. |
java.lang.String |
getDisplayName()
Returns a "human readable" name of the instance. |
static java.util.List<java.lang.String> |
getDisplayNames()
Gets a list of all CompareType's displayNames. |
boolean |
matches(java.lang.String pattern,
java.lang.String str)
Tells if the given string matches the given pattern based on the algorithm of this CompareType instance. |
java.lang.String |
toString()
|
static CompareType |
valueOf(java.lang.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(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 name
java.lang.NullPointerException
- if the argument is nullpublic static java.util.List<java.lang.String> getDisplayNames()
public static CompareType findByDisplayName(java.lang.String displayName)
displayName
- the displayName
public boolean matches(java.lang.String pattern, java.lang.String str)
pattern
- the patternstr
- the string
public java.lang.String getDisplayName()
public java.lang.String toString()
toString
in class java.lang.Enum<CompareType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |