package org.fakekoji.jobmanager.model;

import org.fakekoji.jobmanager.ManagementResult;

import java.util.List;
import java.util.Objects;

public class JobUpdateResults {

    public final List<JobUpdateResult> jobsCreated;
    public final List<JobUpdateResult> jobsArchived;
    public final List<JobUpdateResult> jobsRewritten;
    public final List<JobUpdateResult> jobsRevived;

    public JobUpdateResults(
            List<JobUpdateResult> jobsCreated,
            List<JobUpdateResult> jobsArchived,
            List<JobUpdateResult> jobsRewritten,
            List<JobUpdateResult> jobsRevived
    ) {
        this.jobsCreated = jobsCreated;
        this.jobsArchived = jobsArchived;
        this.jobsRewritten = jobsRewritten;
        this.jobsRevived = jobsRevived;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof JobUpdateResults)) return false;
        JobUpdateResults that = (JobUpdateResults) o;
        return Objects.equals(jobsCreated, that.jobsCreated) &&
                Objects.equals(jobsArchived, that.jobsArchived) &&
                Objects.equals(jobsRewritten, that.jobsRewritten) &&
                Objects.equals(jobsRevived, that.jobsRevived);
    }

    @Override
    public int hashCode() {
        return Objects.hash(jobsCreated, jobsArchived, jobsRewritten, jobsRevived);
    }

    @Override
    public String toString() {
        return "JobUpdateResults{" +
                "jobsCreated=" + jobsCreated +
                ", jobsArchived=" + jobsArchived +
                ", jobsRewritten=" + jobsRewritten +
                ", jobsRevived=" + jobsRevived +
                '}';
    }
}

@@ -44,50 +44,30 @@
 ort 
-org.fakekoji.jobmanager.ManagementResult;%0A
+java.util.Collections;
 %0Aimp
@@ -358,16 +358,246 @@
 vived;%0A%0A
+    public JobUpdateResults() %7B%0A        jobsCreated = Collections.emptyList();%0A        jobsArchived = Collections.emptyList();%0A        jobsRewritten = Collections.emptyList();%0A        jobsRevived = Collections.emptyList();%0A    %7D%0A%0A
     publ

Add default contructor of JobUpdateResults