de.mklinger.qetcher.client.model.v1.builder.JobsBuilder Maven / Gradle / Ivy
The newest version!
package de.mklinger.qetcher.client.model.v1.builder;
import java.util.List;
import de.mklinger.qetcher.client.model.v1.Job;
import de.mklinger.qetcher.client.model.v1.Jobs;
import de.mklinger.qetcher.client.model.v1.impl.JobsImpl;
/**
* @author Marc Klinger - mklinger[at]mklinger[dot]de
*/
public class JobsBuilder {
private List jobs;
public static JobsBuilder of(final Jobs jobs) {
return new JobsBuilder()
.jobs(jobs.getJobs());
}
public List getJobs() {
return jobs;
}
public JobsBuilder jobs(final List jobs) {
this.jobs = jobs;
return this;
}
public Jobs build() {
return new JobsImpl(this);
}
}