Package io.gravitee.alert.api.condition
Enum StringCondition.Operator
- java.lang.Object
-
- java.lang.Enum<StringCondition.Operator>
-
- io.gravitee.alert.api.condition.StringCondition.Operator
-
- All Implemented Interfaces:
Serializable,Comparable<StringCondition.Operator>
- Enclosing class:
- StringCondition
public static enum StringCondition.Operator extends Enum<StringCondition.Operator>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINSENDS_WITHEQUALSMATCHESNOT_EQUALSSTARTS_WITH
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringCondition.OperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static StringCondition.Operator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALS
public static final StringCondition.Operator EQUALS
-
NOT_EQUALS
public static final StringCondition.Operator NOT_EQUALS
-
STARTS_WITH
public static final StringCondition.Operator STARTS_WITH
-
ENDS_WITH
public static final StringCondition.Operator ENDS_WITH
-
CONTAINS
public static final StringCondition.Operator CONTAINS
-
MATCHES
public static final StringCondition.Operator MATCHES
-
-
Method Detail
-
values
public static StringCondition.Operator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StringCondition.Operator c : StringCondition.Operator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StringCondition.Operator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-