Class ExactValuePredicate
java.lang.Object
com.google.gerrit.index.query.Predicate<ApprovalContext>
com.google.gerrit.server.query.approval.ApprovalPredicate
com.google.gerrit.server.query.approval.ExactValuePredicate
- All Implemented Interfaces:
Matchable<ApprovalContext>
Predicate that matches patch set approvals that have a given voting value.
-
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 TypeMethodDescriptioncopy
(Collection<? extends Predicate<ApprovalContext>> children) Create a copy of this predicate, with new children.boolean
int
hashCode()
boolean
match
(ApprovalContext approvalContext) Does this predicate match this object?Methods inherited from class com.google.gerrit.server.query.approval.ApprovalPredicate
getCost
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, isMatchable, not, or, or, supportedForQueries
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.gerrit.index.query.Matchable
matchResult
-
Constructor Details
-
ExactValuePredicate
public ExactValuePredicate(short votingValue)
-
-
Method Details
-
match
Description copied from interface:Matchable
Does this predicate match this object? -
copy
Description copied from class:Predicate
Create a copy of this predicate, with new children.- Specified by:
copy
in classPredicate<ApprovalContext>
-
hashCode
public int hashCode()- Specified by:
hashCode
in classPredicate<ApprovalContext>
-
equals
- Specified by:
equals
in classPredicate<ApprovalContext>
-