org.opencb.biodata.tools.commons.BiConverter Maven / Gradle / Ivy
/*
*
*
*/
package org.opencb.biodata.tools.commons;
/**
* Bidirectional Converter between two Java classes.
*
* Created by pfurio on 25/10/16.
* @author Joaquin Tarraga <[email protected]>
*/
public interface BiConverter {
T to(S obj);
S from(T obj);
default T convert(S obj) {
return to(obj);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy