Package org.xwiki.eventstream.query
Enum CompareQueryCondition.CompareType
- java.lang.Object
-
- java.lang.Enum<CompareQueryCondition.CompareType>
-
- org.xwiki.eventstream.query.CompareQueryCondition.CompareType
-
- All Implemented Interfaces:
Serializable
,Comparable<CompareQueryCondition.CompareType>
- Enclosing class:
- CompareQueryCondition
public static enum CompareQueryCondition.CompareType extends Enum<CompareQueryCondition.CompareType>
The type of comparison.- Version:
- $Id: db2e2421648180d29d22e69cdf56ca9000e4c982 $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINS
The property value contains the passed value.ENDS_WITH
The property value ends with the passed value.EQUALS
The property value is equals to the passed value.GREATER
The property value is greater than the passed value.GREATER_OR_EQUALS
The property value is greater or equals to the passed value.LESS
The property value is lower than the passed value.LESS_OR_EQUALS
The property value is lower or equals to the passed value.STARTS_WITH
The property value starts with the passed value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompareQueryCondition.CompareType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CompareQueryCondition.CompareType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GREATER
public static final CompareQueryCondition.CompareType GREATER
The property value is greater than the passed value.
-
LESS
public static final CompareQueryCondition.CompareType LESS
The property value is lower than the passed value.
-
GREATER_OR_EQUALS
public static final CompareQueryCondition.CompareType GREATER_OR_EQUALS
The property value is greater or equals to the passed value.
-
LESS_OR_EQUALS
public static final CompareQueryCondition.CompareType LESS_OR_EQUALS
The property value is lower or equals to the passed value.
-
EQUALS
public static final CompareQueryCondition.CompareType EQUALS
The property value is equals to the passed value.
-
STARTS_WITH
public static final CompareQueryCondition.CompareType STARTS_WITH
The property value starts with the passed value.- Since:
- 14.0RC1
-
ENDS_WITH
public static final CompareQueryCondition.CompareType ENDS_WITH
The property value ends with the passed value.- Since:
- 14.0RC1
-
CONTAINS
@Unstable public static final CompareQueryCondition.CompareType CONTAINS
The property value contains the passed value.- Since:
- 14.4RC1
-
-
Method Detail
-
values
public static CompareQueryCondition.CompareType[] 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 (CompareQueryCondition.CompareType c : CompareQueryCondition.CompareType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompareQueryCondition.CompareType 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
-
-