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 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)