org.opencb.biodata.tools.commons.Converter Maven / Gradle / Ivy
/*
*
*
*/
/**
*
*/
package org.opencb.biodata.tools.commons;
import org.opencb.commons.run.ParallelTaskRunner;
import java.util.ArrayList;
import java.util.List;
/**
* @author Matthias Haimel [email protected]
*
*/
public interface Converter extends ParallelTaskRunner.Task {
TO convert(FROM from);
default List apply(List from) {
List convertedBatch = new ArrayList<>(from.size());
for (FROM item: from) {
convertedBatch.add(convert(item));
}
return convertedBatch;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy