Class ApprovalCopier.Result.PatchSetApprovalData
java.lang.Object
com.google.gerrit.server.approval.ApprovalCopier.Result.PatchSetApprovalData
- Enclosing class:
- ApprovalCopier.Result
A
PatchSetApproval
with information about which atoms of the copy condition are
passing/failing.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(PatchSetApproval approval, com.google.common.collect.ImmutableSet<String> passingAtoms, com.google.common.collect.ImmutableSet<String> failingAtoms) abstract com.google.common.collect.ImmutableSet<String>
Lists the leaf predicates of the copy condition that are not fulfilled.abstract com.google.common.collect.ImmutableSet<String>
Lists the leaf predicates of the copy condition that are fulfilled.abstract PatchSetApproval
The approval.
-
Constructor Details
-
PatchSetApprovalData
public PatchSetApprovalData()
-
-
Method Details
-
patchSetApproval
The approval. -
passingAtoms
Lists the leaf predicates of the copy condition that are fulfilled.Example: The expression
changekind:TRIVIAL_REBASE OR is:MIN
has two leaf predicates:- changekind:TRIVIAL_REBASE
- is:MIN
Empty if the label type is missing, if there is no copy condition or if the copy condition is not parseable.
-
failingAtoms
Lists the leaf predicates of the copy condition that are not fulfilled. SeepassingAtoms()
for more details.Empty if the label type is missing, if there is no copy condition or if the copy condition is not parseable.
-
create
public static ApprovalCopier.Result.PatchSetApprovalData create(PatchSetApproval approval, com.google.common.collect.ImmutableSet<String> passingAtoms, com.google.common.collect.ImmutableSet<String> failingAtoms)
-