Class ApprovalCopier.Result.PatchSetApprovalData
- java.lang.Object
-
- com.google.gerrit.server.approval.ApprovalCopier.Result.PatchSetApprovalData
-
- Enclosing class:
- ApprovalCopier.Result
public abstract static class ApprovalCopier.Result.PatchSetApprovalData extends Object
APatchSetApproval
with information about which atoms of the copy condition are passing/failing.
-
-
Constructor Summary
Constructors Constructor Description PatchSetApprovalData()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ApprovalCopier.Result.PatchSetApprovalData
create(PatchSetApproval approval, com.google.common.collect.ImmutableSet<String> passingAtoms, com.google.common.collect.ImmutableSet<String> failingAtoms)
abstract com.google.common.collect.ImmutableSet<String>
failingAtoms()
Lists the leaf predicates of the copy condition that are not fulfilled.abstract com.google.common.collect.ImmutableSet<String>
passingAtoms()
Lists the leaf predicates of the copy condition that are fulfilled.abstract PatchSetApproval
patchSetApproval()
The approval.
-
-
-
Method Detail
-
patchSetApproval
public abstract PatchSetApproval patchSetApproval()
The approval.
-
passingAtoms
public abstract com.google.common.collect.ImmutableSet<String> 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
public abstract com.google.common.collect.ImmutableSet<String> 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)
-
-