public class CompareQueryCondition extends AbstractPropertyQueryCondition
Modifier and Type | Class and Description |
---|---|
static class |
CompareQueryCondition.CompareType
The type of comparison.
|
Constructor and Description |
---|
CompareQueryCondition(String property,
Object value,
CompareQueryCondition.CompareType type) |
CompareQueryCondition(String property,
Object value,
CompareQueryCondition.CompareType type,
boolean reversed) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
CompareQueryCondition.CompareType |
getType() |
Object |
getValue() |
int |
hashCode() |
String |
toString() |
getProperty
isReversed
public CompareQueryCondition(String property, Object value, CompareQueryCondition.CompareType type)
property
- the name of the propertyvalue
- the value the property should be equal totype
- the type of comparisonpublic CompareQueryCondition(String property, Object value, CompareQueryCondition.CompareType type, boolean reversed)
property
- the name of the propertyvalue
- the value the property should be equal totype
- the type of comparisonreversed
- true if the condition should be reversedpublic Object getValue()
public CompareQueryCondition.CompareType getType()
public int hashCode()
hashCode
in class AbstractPropertyQueryCondition
public boolean equals(Object obj)
equals
in class AbstractPropertyQueryCondition
public String toString()
toString
in class AbstractPropertyQueryCondition
Copyright © 2004–2021 XWiki. All rights reserved.