com.powsybl.computation.AbstractCommandBuilder Maven / Gradle / Ivy
/**
* Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.powsybl.computation;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
*
* @author Geoffroy Jamgotchian
*/
abstract class AbstractCommandBuilder> {
protected String id;
protected List inputFiles = Collections.emptyList();
protected List outputFiles = Collections.emptyList();
protected AbstractCommandBuilder() {
}
public T id(String id) {
this.id = id;
return (T) this;
}
public T inputFiles(List inputFiles) {
this.inputFiles = inputFiles;
return (T) this;
}
public T inputFiles(InputFile... inputFiles) {
return inputFiles(Arrays.asList(inputFiles));
}
public T outputFiles(List outputFiles) {
this.outputFiles = outputFiles;
return (T) this;
}
public T outputFiles(OutputFile... outputFiles) {
return outputFiles(Arrays.asList(outputFiles));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy