public class EqualsLabelPredicate extends ChangeIndexPredicate
Modifier and Type | Field and Description |
---|---|
protected Account.Id |
account |
protected com.google.inject.Provider<ReviewDb> |
dbProvider |
protected int |
expVal |
protected AccountGroup.UUID |
group |
protected java.lang.String |
label |
protected PermissionBackend |
permissionBackend |
protected ProjectCache |
projectCache |
protected IdentifiedUser.GenericFactory |
userFactory |
name, value
Constructor and Description |
---|
EqualsLabelPredicate(LabelPredicate.Args args,
java.lang.String label,
int expVal,
Account.Id account) |
Modifier and Type | Method and Description |
---|---|
int |
getCost() |
boolean |
match(ChangeData object)
Does this predicate match this object?
|
protected boolean |
match(ChangeData cd,
short value,
Account.Id approver) |
protected static LabelType |
type(LabelTypes types,
java.lang.String toFind) |
getField, getType
copy, equals, getOperator, getValue, hashCode, toString
and, and, any, asMatchable, estimateCost, getChild, getChildCount, getChildren, getLeafCount, isMatchable, not, or, or
protected final ProjectCache projectCache
protected final PermissionBackend permissionBackend
protected final IdentifiedUser.GenericFactory userFactory
protected final com.google.inject.Provider<ReviewDb> dbProvider
protected final java.lang.String label
protected final int expVal
protected final Account.Id account
protected final AccountGroup.UUID group
public EqualsLabelPredicate(LabelPredicate.Args args, java.lang.String label, int expVal, Account.Id account)
public boolean match(ChangeData object) throws com.google.gwtorm.server.OrmException
Matchable
com.google.gwtorm.server.OrmException
protected static LabelType type(LabelTypes types, java.lang.String toFind)
protected boolean match(ChangeData cd, short value, Account.Id approver)
public int getCost()