Class ApprovalPredicate
java.lang.Object
com.google.gerrit.index.query.Predicate<ApprovalContext>
com.google.gerrit.server.query.approval.ApprovalPredicate
- All Implemented Interfaces:
Matchable<ApprovalContext>
- Direct Known Subclasses:
ChangeKindPredicate
,ExactValuePredicate
,ListOfFilesUnchangedPredicate
,MagicValuePredicate
,UserInPredicate
public abstract class ApprovalPredicate
extends Predicate<ApprovalContext>
implements Matchable<ApprovalContext>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.index.query.Predicate
Predicate.Any<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getCost()
Returns a cost estimate to run this predicate, higher figures cost more.Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, copy, equals, estimateCost, getChild, getChildCount, getChildren, getFlattenedPredicateList, getLeafCount, getPredicateString, hashCode, isLeaf, isMatchable, not, or, or, supportedForQueries
-
Constructor Details
-
ApprovalPredicate
public ApprovalPredicate()
-
-
Method Details
-
getCost
public int getCost()Description copied from interface:Matchable
Returns a cost estimate to run this predicate, higher figures cost more.- Specified by:
getCost
in interfaceMatchable<ApprovalContext>
-