Package org.xwiki.eventstream.query
Class GroupQueryCondition
- java.lang.Object
-
- org.xwiki.eventstream.query.QueryCondition
-
- org.xwiki.eventstream.query.GroupQueryCondition
-
- Direct Known Subclasses:
SimpleEventQuery
public class GroupQueryCondition extends QueryCondition
A group of conditions.- Since:
- 12.5RC1
- Version:
- $Id: 0081965354071b71b0fad45b49797a83222aec5c $
-
-
Field Summary
Fields Modifier and Type Field Description protected List<QueryCondition>
conditions
protected boolean
or
protected boolean
virtual
-
Constructor Summary
Constructors Constructor Description GroupQueryCondition(boolean or, boolean reversed, QueryCondition... conditions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
List<QueryCondition>
getConditions()
int
hashCode()
boolean
isOr()
String
toString()
-
Methods inherited from class org.xwiki.eventstream.query.QueryCondition
isReversed
-
-
-
-
Field Detail
-
conditions
protected final List<QueryCondition> conditions
-
or
protected boolean or
-
virtual
protected final boolean virtual
-
-
Constructor Detail
-
GroupQueryCondition
public GroupQueryCondition(boolean or, boolean reversed, QueryCondition... conditions)
- Parameters:
or
- true if one of the conditions is enough, if false all conditions must matchreversed
- true if the condition should be reversedconditions
- the condition to start with
-
-
Method Detail
-
isOr
public boolean isOr()
- Returns:
- true if one of the conditions is enough, if false all conditions must match
-
getConditions
public List<QueryCondition> getConditions()
- Returns:
- the conditions
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classQueryCondition
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classQueryCondition
-
toString
public String toString()
- Overrides:
toString
in classQueryCondition
-
-