Package org.xwiki.eventstream.query
Class CompareQueryCondition
- java.lang.Object
-
- org.xwiki.eventstream.query.QueryCondition
-
- org.xwiki.eventstream.query.AbstractPropertyQueryCondition
-
- org.xwiki.eventstream.query.CompareQueryCondition
-
public class CompareQueryCondition extends AbstractPropertyQueryCondition
A comparison between a property and a passed value.- Since:
- 12.5RC1
- Version:
- $Id: db2e2421648180d29d22e69cdf56ca9000e4c982 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompareQueryCondition.CompareType
The type of comparison.
-
Constructor Summary
Constructors Constructor Description CompareQueryCondition(String property, boolean custom, Object value, CompareQueryCondition.CompareType type, boolean reversed)
CompareQueryCondition(String property, boolean custom, Type customType, Object value, CompareQueryCondition.CompareType type, boolean reversed)
CompareQueryCondition(String property, Object value, CompareQueryCondition.CompareType type)
CompareQueryCondition(String property, Object value, CompareQueryCondition.CompareType type, boolean reversed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CompareQueryCondition.CompareType
getType()
Object
getValue()
int
hashCode()
String
toString()
-
Methods inherited from class org.xwiki.eventstream.query.AbstractPropertyQueryCondition
getCustomType, getProperty, isCustom, isParameter
-
Methods inherited from class org.xwiki.eventstream.query.QueryCondition
isReversed
-
-
-
-
Constructor Detail
-
CompareQueryCondition
public CompareQueryCondition(String property, Object value, CompareQueryCondition.CompareType type)
- Parameters:
property
- the name of the propertyvalue
- the value the property should be equal totype
- the type of comparison
-
CompareQueryCondition
public CompareQueryCondition(String property, Object value, CompareQueryCondition.CompareType type, boolean reversed)
- Parameters:
property
- the name of the propertyvalue
- the value the property should be equal totype
- the type of comparisonreversed
- true if the condition should be reversed
-
CompareQueryCondition
public CompareQueryCondition(String property, boolean custom, Object value, CompareQueryCondition.CompareType type, boolean reversed)
- Parameters:
property
- the name of the propertycustom
- true if the property is a custom parametervalue
- the value the property should be equal totype
- the type of comparisonreversed
- true if the condition should be reversed- Since:
- 13.9RC1
-
CompareQueryCondition
public CompareQueryCondition(String property, boolean custom, Type customType, Object value, CompareQueryCondition.CompareType type, boolean reversed)
- Parameters:
property
- the name of the propertycustom
- true if it's a custom event reversedcustomType
- the type in which that property was storedvalue
- the value the property should be equal totype
- the type of comparisonreversed
- true if the condition should be reversed- Since:
- 14.2RC1
-
-
Method Detail
-
getValue
public Object getValue()
- Returns:
- the value the property should be equal to
-
getType
public CompareQueryCondition.CompareType getType()
- Returns:
- the type the type of comparison
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractPropertyQueryCondition
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractPropertyQueryCondition
-
toString
public String toString()
- Overrides:
toString
in classAbstractPropertyQueryCondition
-
-