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

org.simpleflatmapper.converter.AbstractConverterFactoryProducer Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 9.0.2
Show newest version
package org.simpleflatmapper.converter;


import org.simpleflatmapper.util.Consumer;

public abstract class AbstractConverterFactoryProducer implements ConverterFactoryProducer {

    protected   void constantConverter(
            Consumer> consumer,
            Class from,
            Class to,
            Converter converter) {
        consumer.accept(new ConstantConverterFactory(new ConvertingTypes(from, to), converter));
    }

    protected  void factoryConverter(
            Consumer> consumer,
            ConverterFactory converterFactory) {
        consumer.accept(converterFactory);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy