Class LabelPredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.OrPredicate<ChangeData>
-
- com.google.gerrit.server.query.change.LabelPredicate
-
- All Implemented Interfaces:
Matchable<ChangeData>
public class LabelPredicate extends OrPredicate<ChangeData>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classLabelPredicate.Argsprotected static classLabelPredicate.Parsed
-
Field Summary
Fields Modifier and Type Field Description protected static intMAX_LABEL_VALUEprotected Stringvalue
-
Constructor Summary
Constructors Constructor Description LabelPredicate(ChangeQueryBuilder.Arguments a, String value, Set<Account.Id> accounts, AccountGroup.UUID group)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Predicate<ChangeData>equalsLabelPredicate(LabelPredicate.Args args, String label, int expVal)protected static Predicate<ChangeData>noLabelQuery(LabelPredicate.Args args, String label)protected static Predicate<ChangeData>onePredicate(LabelPredicate.Args args, String label, int expVal)protected static List<Predicate<ChangeData>>predicates(LabelPredicate.Args args)StringtoString()-
Methods inherited from class com.google.gerrit.index.query.OrPredicate
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, isMatchable, match
-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getLeafCount, not, or, or
-
-
-
-
Field Detail
-
MAX_LABEL_VALUE
protected static final int MAX_LABEL_VALUE
- See Also:
- Constant Field Values
-
value
protected final String value
-
-
Constructor Detail
-
LabelPredicate
public LabelPredicate(ChangeQueryBuilder.Arguments a, String value, Set<Account.Id> accounts, AccountGroup.UUID group)
-
-
Method Detail
-
predicates
protected static List<Predicate<ChangeData>> predicates(LabelPredicate.Args args)
-
onePredicate
protected static Predicate<ChangeData> onePredicate(LabelPredicate.Args args, String label, int expVal)
-
noLabelQuery
protected static Predicate<ChangeData> noLabelQuery(LabelPredicate.Args args, String label)
-
equalsLabelPredicate
protected static Predicate<ChangeData> equalsLabelPredicate(LabelPredicate.Args args, String label, int expVal)
-
toString
public String toString()
- Overrides:
toStringin classOrPredicate<ChangeData>
-
-