Class ApprovalCopier.Result
- java.lang.Object
-
- com.google.gerrit.server.approval.ApprovalCopier.Result
-
- Enclosing class:
- ApprovalCopier
public abstract static class ApprovalCopier.Result extends Object
-
-
Constructor Summary
Constructors Constructor Description Result()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract com.google.common.collect.ImmutableSet<PatchSetApproval>
copiedApprovals()
Approvals that have been copied from the previous patch set.static ApprovalCopier.Result
create(com.google.common.collect.ImmutableSet<PatchSetApproval> copiedApprovals, com.google.common.collect.ImmutableSet<PatchSetApproval> outdatedApprovals)
abstract com.google.common.collect.ImmutableSet<PatchSetApproval>
outdatedApprovals()
Approvals on the previous patch set that have not been copied to the patch set.
-
-
-
Method Detail
-
copiedApprovals
public abstract com.google.common.collect.ImmutableSet<PatchSetApproval> 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<PatchSetApproval> 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<PatchSetApproval> copiedApprovals, com.google.common.collect.ImmutableSet<PatchSetApproval> outdatedApprovals)
-
-