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

org.openstreetmap.atlas.utilities.conversion.Converter Maven / Gradle / Ivy

There is a newer version: 7.0.8
Show newest version
package org.openstreetmap.atlas.utilities.conversion;

import java.util.function.Function;

/**
 * Convert from A type to B type
 *
 * @param 
 *            The source type
 * @param 
 *            The target type
 * @author tony
 */
public interface Converter extends Function
{
    @Override
    default B apply(final A other)
    {
        return convert(other);
    }

    B convert(A object);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy