Class ApprovalCopier.Result
java.lang.Object
com.google.gerrit.server.approval.ApprovalCopier.Result
- Enclosing class:
ApprovalCopier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
APatchSetApproval
with information about which atoms of the copy condition are passing/failing. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract com.google.common.collect.ImmutableSet
<ApprovalCopier.Result.PatchSetApprovalData> Approvals that have been copied from the previous patch set.static ApprovalCopier.Result
create
(com.google.common.collect.ImmutableSet<ApprovalCopier.Result.PatchSetApprovalData> copiedApprovals, com.google.common.collect.ImmutableSet<ApprovalCopier.Result.PatchSetApprovalData> outdatedApprovals) abstract com.google.common.collect.ImmutableSet
<ApprovalCopier.Result.PatchSetApprovalData> Approvals on the previous patch set that have not been copied to the patch set.
-
Constructor Details
-
Result
public Result()
-
-
Method Details
-
copiedApprovals
public abstract com.google.common.collect.ImmutableSet<ApprovalCopier.Result.PatchSetApprovalData> copiedApprovals()Approvals that have been copied from the previous patch set.An approval is copied if:
- the approval on the previous patch set matches the copy condition of its label
- the approval is not overridden by a current approval on the patch set
-
outdatedApprovals
public abstract com.google.common.collect.ImmutableSet<ApprovalCopier.Result.PatchSetApprovalData> outdatedApprovals()Approvals on the previous patch set that have not been copied to the patch set.These approvals didn't match the copy condition of their labels and hence haven't been copied.
Only returns non-copied approvals of the previous patch set. Approvals from earlier patch sets that were outdated before are not included.
-
create
public static ApprovalCopier.Result create(com.google.common.collect.ImmutableSet<ApprovalCopier.Result.PatchSetApprovalData> copiedApprovals, com.google.common.collect.ImmutableSet<ApprovalCopier.Result.PatchSetApprovalData> outdatedApprovals)
-