Class MagicValuePredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<ApprovalContext>
-
- com.google.gerrit.server.query.approval.ApprovalPredicate
-
- com.google.gerrit.server.query.approval.MagicValuePredicate
-
- All Implemented Interfaces:
Matchable<ApprovalContext>
public class MagicValuePredicate extends ApprovalPredicate
Predicate that matches patch set approvals we want to copy based on the value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMagicValuePredicate.Factory
-
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.booleanequals(Object other)inthashCode()booleanmatch(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:MatchableDoes this predicate match this object?
-
copy
public Predicate<ApprovalContext> copy(Collection<? extends Predicate<ApprovalContext>> children)
Description copied from class:PredicateCreate a copy of this predicate, with new children.- Specified by:
copyin classPredicate<ApprovalContext>
-
hashCode
public int hashCode()
- Specified by:
hashCodein classPredicate<ApprovalContext>
-
equals
public boolean equals(Object other)
- Specified by:
equalsin classPredicate<ApprovalContext>
-
-