All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opencb.biodata.tools.commons.BiConverter Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
/*
 * 
 *
 */

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