Class ChangeKindPredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<ApprovalContext>
-
- com.google.gerrit.server.query.approval.ApprovalPredicate
-
- com.google.gerrit.server.query.approval.ChangeKindPredicate
-
- All Implemented Interfaces:
Matchable<ApprovalContext>
public class ChangeKindPredicate extends ApprovalPredicate
Predicate that matches patch set approvals we want to copy if the diff between the old and new patch set is of a certain kind.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<ApprovalContext>
copy(Collection<? extends Predicate<ApprovalContext>> children)
Create a copy of this predicate, with new children.boolean
equals(Object other)
int
hashCode()
boolean
match(ApprovalContext ctx)
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
-
-
-
-
Method Detail
-
match
public boolean match(ApprovalContext ctx)
Description copied from interface:Matchable
Does this predicate match this object?
-
copy
public Predicate<ApprovalContext> copy(Collection<? extends Predicate<ApprovalContext>> children)
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
public boolean equals(Object other)
- Specified by:
equals
in classPredicate<ApprovalContext>
-
-