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

org.opencb.biodata.tools.Converter Maven / Gradle / Ivy

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

package org.opencb.biodata.tools;

/**
 * Converts between two Java classes.
 *
 * Created by pfurio on 25/10/16.
 * @author Joaquín Tárraga Giménez <[email protected]>
 */
public interface Converter {

    T to(S obj);

    S from(T obj);

    default T convert(S obj) {
        return to(obj);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy