Class HasStarsPredicate
- java.lang.Object
-
- com.google.gerrit.index.query.Predicate<T>
-
- com.google.gerrit.index.query.OperatorPredicate<I>
-
- com.google.gerrit.index.query.IndexPredicate<ChangeData>
-
- com.google.gerrit.server.query.change.ChangeIndexPredicate
-
- com.google.gerrit.server.query.change.HasStarsPredicate
-
- All Implemented Interfaces:
Matchable<ChangeData>
public class HasStarsPredicate extends ChangeIndexPredicate
-
-
Field Summary
Fields Modifier and Type Field Description protected Account.Id
accountId
-
Fields inherited from class com.google.gerrit.index.query.OperatorPredicate
name, value
-
-
Constructor Summary
Constructors Constructor Description HasStarsPredicate(Account.Id accountId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCost()
boolean
match(ChangeData cd)
Does this predicate match this object?String
toString()
-
Methods inherited from class com.google.gerrit.server.query.change.ChangeIndexPredicate
none
-
Methods inherited from class com.google.gerrit.index.query.IndexPredicate
getField, getType
-
Methods inherited from class com.google.gerrit.index.query.OperatorPredicate
copy, equals, getOperator, getValue, hashCode
-
Methods inherited from class com.google.gerrit.index.query.Predicate
and, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getLeafCount, isMatchable, not, or, or
-
-
-
-
Field Detail
-
accountId
protected final Account.Id accountId
-
-
Constructor Detail
-
HasStarsPredicate
public HasStarsPredicate(Account.Id accountId)
-
-
Method Detail
-
match
public boolean match(ChangeData cd)
Description copied from interface:Matchable
Does this predicate match this object?
-
getCost
public int getCost()
- Returns:
- a cost estimate to run this predicate, higher figures cost more.
-
toString
public String toString()
- Overrides:
toString
in classOperatorPredicate<ChangeData>
-
-