com.mageddo.tobby.internal.utils.BatchThread Maven / Gradle / Ivy
package com.mageddo.tobby.internal.utils;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
public class BatchThread {
private final List> callables;
public BatchThread() {
this.callables = new ArrayList<>();
}
public BatchThread add(Callable callable){
this.callables.add(callable);
return this;
}
public List> getCallables() {
return this.callables;
}
}