org.opencb.biodata.tools.variant.converters.Converter Maven / Gradle / Ivy
/*
*
*
*/
/**
*
*/
package org.opencb.biodata.tools.variant.converters;
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 variantContext : from) {
convertedBatch.add(convert(variantContext));
}
return convertedBatch;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy