Class ConstantPredicate
- java.lang.Object
- 
- com.google.gerrit.index.query.Predicate<T>
- 
- com.google.gerrit.index.query.OperatorPredicate<ChangeData>
- 
- com.google.gerrit.server.query.change.SubmitRequirementPredicate
- 
- com.google.gerrit.server.query.change.ConstantPredicate
 
 
 
 
- 
- All Implemented Interfaces:
- Matchable<ChangeData>
 
 public class ConstantPredicate extends SubmitRequirementPredicate A submit requirement predicate (can only be used in submit requirement expressions) that always evaluates totrueif the value is equal to "true" or false otherwise.
- 
- 
Field Summary- 
Fields inherited from class com.google.gerrit.index.query.OperatorPredicatename, value
 
- 
 - 
Constructor SummaryConstructors Constructor Description ConstantPredicate(String value)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCost()Returns a cost estimate to run this predicate, higher figures cost more.booleanmatch(ChangeData object)Does this predicate match this object?- 
Methods inherited from class com.google.gerrit.server.query.change.SubmitRequirementPredicatesupportedForQueries
 - 
Methods inherited from class com.google.gerrit.index.query.OperatorPredicatecopy, equals, getOperator, getValue, hashCode, toString
 - 
Methods inherited from class com.google.gerrit.index.query.Predicateand, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, isMatchable, not, or, or
 
- 
 
- 
- 
- 
Constructor Detail- 
ConstantPredicatepublic ConstantPredicate(String value) 
 
- 
 - 
Method Detail- 
matchpublic boolean match(ChangeData object) Description copied from interface:MatchableDoes this predicate match this object?
 - 
getCostpublic int getCost() Description copied from interface:MatchableReturns a cost estimate to run this predicate, higher figures cost more.
 
- 
 
-